use explicit scheme for proxies in the docs
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 15 Feb 2013 16:32:50 +0000 (16:32 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 15 Feb 2013 16:32:50 +0000 (16:32 +0000)
Issue #1192 tried to force user to provide a scheme for proxy urls.
As this would break backwards compability change the docs instead.

docs/user/advanced.rst

index 1dcde17..33bb6f6 100644 (file)
@@ -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")