Fixed an issue where the host header wasn't being set properly.

pull/5/head
Jim Heising 2015-03-13 18:30:40 -05:00
parent 33ff559e67
commit 8aefcd604f
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ function processRequest(req, res)
} }
} }
// Make sure the host header is to the URL we're requesting, not thingproxy
req.headers["host"] = remoteURL.host;
var proxyRequest = request({ var proxyRequest = request({
url: remoteURL, url: remoteURL,
headers: req.headers, headers: req.headers,