6
使用以下链接中的反向代理, 当前我正在获取某个位置,我想更新它(位置), 我该怎么做?如何更新http呼叫的位置
proxy.on('proxyRes', function (proxyRes, req, res) {
res.headers.location = 'http:/a/b/'
});
,我需要去改变它例如是
res.headers.location =的“http:/ C/d /” 我会处理的逻辑如何更改URL,但我想知道如何更新?
https://github.com/nodejitsu/node-http-proxy
是否要将Web浏览器重定向到另一个URL,是您想要的吗? –