From 29afab4488e098b1554441797f6a4e3dc450c21f Mon Sep 17 00:00:00 2001 From: yawnt Date: Sun, 15 Sep 2013 22:07:19 +0200 Subject: [PATCH] [fix] headers, closes #469 --- lib/caronte/passes/web-outgoing.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/caronte/passes/web-outgoing.js b/lib/caronte/passes/web-outgoing.js index 4e98151..941bc60 100644 --- a/lib/caronte/passes/web-outgoing.js +++ b/lib/caronte/passes/web-outgoing.js @@ -9,15 +9,15 @@ var passes = exports; */ [ // <-- - - function writeStatusCode(res, proxyRes) { - res.writeHead(proxyRes.statusCode); - }, - + function writeHeaders(res, proxyRes) { Object.keys(proxyRes.headers).forEach(function(key) { res.setHeader(key, proxyRes.headers[key]); }); + }, + + function writeStatusCode(res, proxyRes) { + res.writeHead(proxyRes.statusCode); } ] // <--