]> git.ipfire.org Git - thirdparty/patchwork.git/commit
pwclient: Support proxy configuration
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 Dec 2016 10:37:46 +0000 (11:37 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 13 Dec 2016 18:06:51 +0000 (18:06 +0000)
commit0d0d5c5d13c2b98741f55c8b99f561572d2dc037
tree12c1de47949b4027dc000ccacc3eab34699c36ce
parent3141f749ba3719622f2405f759c59a82650b121e
pwclient: Support proxy configuration

The environment variables http_proxy and https_proxy can be used
to configure the HTTP transport.

The TCP connection is made with the proxy host, whereas the original host
is maintained in the HTTP POST URI via "handler" in "send_request".

The send_request() method of xmlrpclib has a different signature
and behaviour in Python 2 and 3.

Fixes #47

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
(cherry picked from commit 53fe8b16431833b7bff6271c41ca8b79b0a7701e)
patchwork/bin/pwclient