Skip to content

Commit

Permalink
remove content length header before updating response and update mino…
Browse files Browse the repository at this point in the history
…r version
  • Loading branch information
Evgeniy Rotar committed Jan 9, 2019
1 parent e2127c4 commit 0e7697c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sitecore-jss-proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weareyou/sitecore-jss-proxy",
"version": "1.0.0",
"version": "1.0.1",
"description": "Proxy middleware for express.js server with hidding prod links.",
"main": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/sitecore-jss-proxy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ function handleProxyResponse(
}

let originWrite = serverResponse.write;
delete proxyResponse.headers['content-length'];

// if the request URL contains any of the excluded rewrite routes, we assume the response does not need to be server rendered.
// instead, the response should just be relayed as usual.
Expand Down

0 comments on commit 0e7697c

Please sign in to comment.