mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
parent
70ed1c4273
commit
d98d9516ea
@ -157,7 +157,7 @@ common.urlJoin = function() {
|
|||||||
// on every request
|
// on every request
|
||||||
|
|
||||||
// Handle case where there could be multiple ? in the URL.
|
// Handle case where there could be multiple ? in the URL.
|
||||||
retSegs.concat(lastSegs);
|
retSegs.push.apply(retSegs, lastSegs);
|
||||||
|
|
||||||
return retSegs.join('?')
|
return retSegs.join('?')
|
||||||
};
|
};
|
||||||
|
|||||||
@ -203,7 +203,7 @@ describe('lib/http-proxy/common.js', function () {
|
|||||||
expect(outgoing.path).to.eql('/forward/static/path');
|
expect(outgoing.path).to.eql('/forward/static/path');
|
||||||
})
|
})
|
||||||
|
|
||||||
it.only('should not modify the query string', function () {
|
it('should not modify the query string', function () {
|
||||||
var outgoing = {};
|
var outgoing = {};
|
||||||
common.setupOutgoing(outgoing, {
|
common.setupOutgoing(outgoing, {
|
||||||
target: { path: '/forward' },
|
target: { path: '/forward' },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user