Created by: imagekitio
Test case added to help understand the issue
it('should replace multiple http:/ with http://', function () {
var outgoing = {};
common.setupOutgoing(outgoing, {
target: { path: '/' },
}, { url: '/xyz/http://foobar.com/http://foobar.com/https://foobar.com' });
expect(outgoing.path).to.eql('/xyz/http://foobar.com/http://foobar.com/https://foobar.com');
})