【问题标题】:node http proxy doesent route to host.com but instead host.com@localhost?节点http代理不路由到host.com,而是host.com@localhost?
【发布时间】:2012-09-05 21:58:10
【问题描述】:

发疯了..

这个

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" ..等

host.com@localhost?本地主机必须离开,但无法将其关闭;9

怎么可能?!它应该转到host.com!花一个小时寻找尝试,有人知道怎么了吗?

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-11
      • 1970-01-01
      • 1970-01-01
      • 2019-05-05
      • 2023-03-15
      • 2017-05-11
      • 2020-07-15
      • 1970-01-01
      相关资源
      最近更新 更多