Fixed an issue where the host header wasn't being set properly.
parent
33ff559e67
commit
8aefcd604f
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue