Webpack HMR EventSource requests are now proxied (rather than redirected) to the local HMR server. Fixes #271.

This commit is contained in:
SteveSandersonMS
2016-09-09 16:31:15 +01:00
parent bc2de2ad59
commit f071590fce
3 changed files with 22 additions and 21 deletions

View File

@@ -30,6 +30,7 @@ namespace Microsoft.AspNetCore.SpaServices.Webpack
_pathPrefix = pathPrefix;
_options = options;
_httpClient = new HttpClient(new HttpClientHandler());
_httpClient.Timeout = _options.RequestTimeout;
}
public async Task Invoke(HttpContext context)