Skip to content

Commit

Permalink
#14 Set content length header when intercepting the response for a fu…
Browse files Browse the repository at this point in the history
…ll html page
  • Loading branch information
xabikos committed Mar 14, 2016
1 parent 0239da3 commit 475cc64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Webpack/WebpackMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public async Task Invoke(HttpContext context) {
writer.Write(response);
writer.Flush();
memStream.Seek(0, SeekOrigin.Begin);
context.Response.Headers.Add("Content-Length", memStream.Length.ToString());
await memStream.CopyToAsync(stream);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Webpack/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.3",
"version": "1.2.4",
"title": "Webpack",
"description": "Webpack extension methods and middleware for using module bundling in an ASP.NET 5 application",
"authors": [ "Charalampos Karypidis" ],
Expand Down

0 comments on commit 475cc64

Please sign in to comment.