node http proxy doesent route to host.com,而是host.com@localhost?

时间:2012-09-05 21:58:11

标签: node.js localhost node-http-proxy

坚持......

这个

var app = express(),
proxy = new httpProxy.HttpProxy({
    target: {
        host: 'host.com',
        port: 5280          // Port of XMPP server
    }
});

...

// Proxy BOSH request to XMPP server
app.all('/http-bind', function(req, res) {
    util.puts('Request successfully proxied: ' + req.url);
    util.puts(JSON.stringify(req.headers, true, 2));
    proxy.proxyRequest(req, res);
});

结果

body rid =“3965133021”xmlns =“http://jabber.org/protocol/httpbind”to =“host.com@localhost”.. etc

host.com@localhost? localhost必须去,但不能把它关闭; 9

怎么可能?!它应该去host.com而不是!花一个小时寻找尝试,谁都知道什么是错的?

1 个答案:

答案 0 :(得分:0)

这是一个带有strophe框架的本地问题。现在修好了。