]> 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:01:15 +0000 (18:01 +0000)
commit53fe8b16431833b7bff6271c41ca8b79b0a7701e
treeb1f3205bfa55d4ec3206887dbd43d342d93ab6fc
parent0bcb1bf6466461043bcb84c4856166105d5d5738
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>
patchwork/bin/pwclient