pass headers through when proxying request to allow for byte-range/etag handling

This commit is contained in:
Brian Gough 2014-12-02 14:53:46 +00:00
parent 94448ed447
commit 138170be60

View file

@ -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"