mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 23:51:08 +00:00
pass headers through when proxying request to allow for byte-range/etag handling
This commit is contained in:
parent
94448ed447
commit
138170be60
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ module.exports = CompileController =
|
|||
url = "#{compilerUrl}#{url}"
|
||||
logger.log url: url, "proxying to CLSI"
|
||||
oneMinute = 60 * 1000
|
||||
proxy = request(url: url, method: req.method, timeout: oneMinute)
|
||||
proxy = request(url: url, method: req.method, timeout: oneMinute, headers: req.headers)
|
||||
proxy.pipe(res)
|
||||
proxy.on "error", (error) ->
|
||||
logger.warn err: error, url: url, "CLSI proxy error"
|
||||
|
|
Loading…
Reference in a new issue