From 138170be609c02ddbac088a9e32815ba0e347648 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 2 Dec 2014 14:53:46 +0000 Subject: [PATCH] pass headers through when proxying request to allow for byte-range/etag handling --- .../web/app/coffee/Features/Compile/CompileController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Compile/CompileController.coffee b/services/web/app/coffee/Features/Compile/CompileController.coffee index edb42f3e1f..fc02d2a26c 100755 --- a/services/web/app/coffee/Features/Compile/CompileController.coffee +++ b/services/web/app/coffee/Features/Compile/CompileController.coffee @@ -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"