summaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2013-02-15 16:32:50 +0000
committerThomas Weißschuh <thomas@t-8ch.de>2013-02-15 16:32:50 +0000
commitb53975327f624c3cbc0e0db86d52a4ad0288aea8 (patch)
treefb9e869e367a9ae63bb8f66e064a1c464d165907 /docs/user
parentd0390d4f27ed25d5409f899b7c1d298a8fb07c87 (diff)
downloadpython-requests-b53975327f624c3cbc0e0db86d52a4ad0288aea8.tar.gz
use explicit scheme for proxies in the docs
Issue #1192 tried to force user to provide a scheme for proxy urls. As this would break backwards compability change the docs instead.
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/advanced.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst
index 1dcde171..33bb6f6d 100644
--- a/docs/user/advanced.rst
+++ b/docs/user/advanced.rst
@@ -262,8 +262,8 @@ If you need to use a proxy, you can configure individual requests with the
import requests
proxies = {
- "http": "10.10.1.10:3128",
- "https": "10.10.1.10:1080",
+ "http": "http://10.10.1.10:3128",
+ "https": "http://10.10.1.10:1080",
}
requests.get("http://example.org", proxies=proxies)
@@ -272,8 +272,8 @@ You can also configure proxies by environment variables ``HTTP_PROXY`` and ``HTT
::
- $ export HTTP_PROXY="10.10.1.10:3128"
- $ export HTTPS_PROXY="10.10.1.10:1080"
+ $ export HTTP_PROXY="http://10.10.1.10:3128"
+ $ export HTTPS_PROXY="http://10.10.1.10:1080"
$ python
>>> import requests
>>> requests.get("http://example.org")