added test for proxy option. #105

Merged
merged 1 commit into from Nov 17, 2011

Projects

None yet

2 participants

@dominictarr
Contributor

using

request({
    url: 'http://'+X,
    proxy: 'http://'+Y
}, function () {...})

should be equivalent to :

request({
    url: 'http://'+Y,
    headers: {host: X}
}, function () {...})
@mikeal mikeal merged commit 305e609 into request:master Nov 17, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment