Merge pull request #257 from sharelatex/ta-remove-proxy-headers

Remove headers when proxying analytics request
This commit is contained in:
Timothée Alby 2018-01-12 15:48:18 +02:00 committed by GitHub
commit 62bc3f947f

View file

@ -11,6 +11,9 @@ module.exports =
proxyReqPathResolver: (req) ->
requestPath = URL.parse(req.url).path
"#{basePath}#{requestPath}"
proxyReqOptDecorator: (proxyReqOpts, srcReq) ->
proxyReqOpts.headers = {} # unset all headers
proxyReqOpts
)
else
(req, res, next) ->