Fixed typo in code comment (#635)

This commit is contained in:
Jerome Smadja
2016-09-13 15:57:19 +02:00
committed by Dan Abramov
parent e45053cf13
commit edddc50af7

View File

@@ -208,7 +208,7 @@ function addMiddleware(devServer) {
// So if `proxy` is specified, we need to decide which fallback to use.
// We use a heuristic: if request `accept`s text/html, we pick /index.html.
// Modern browsers include text/html into `accept` header when navigating.
// However API calls like `fetch()` wont generally wont accept text/html.
// However API calls like `fetch()` wont generally accept text/html.
// If this heuristic doesnt work well for you, dont use `proxy`.
htmlAcceptHeaders: proxy ?
['text/html'] :