From d7b9fb041c93e5500c0c677770452258bb3e24c4 Mon Sep 17 00:00:00 2001 From: Robin Mehner Date: Tue, 9 Sep 2014 19:33:54 +0200 Subject: [PATCH] Filter 'x-content-type-options' from twitter's response headers --- proxy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/index.js b/proxy/index.js index f4de8ae..a303db7 100644 --- a/proxy/index.js +++ b/proxy/index.js @@ -72,7 +72,7 @@ exports.proxyRequest = function (opts, cb) { * Filter out unwanted information from a headers object. */ exports.filterHeaders = function (headers) { - var reject = ['content-length', 'content-type']; + var reject = ['content-length', 'content-type', 'x-content-type-options']; return Object.keys(headers).reduce(function (memo, key){ if (!_.contains(reject, key)) { memo[key] = headers[key];