From 43dc836ac2fb5b8eb6af1cfbe3de9ed500c0c854 Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Sat, 27 May 2017 12:28:16 +0100 Subject: [PATCH] Allow host to be set for cross-origin pushes --- lib/spdy/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spdy/response.js b/lib/spdy/response.js index e607918..ebc34fc 100644 --- a/lib/spdy/response.js +++ b/lib/spdy/response.js @@ -84,7 +84,7 @@ exports.push = function push (path, headers, callback) { path: path, method: headers.method ? headers.method.toString() : 'GET', status: headers.status ? parseInt(headers.status, 10) : 200, - host: this._req.headers.host, + host: headers.host || this._req.headers.host, headers: headers.request, response: headers.response }