fix doc
authors7v7nislands <s7v7nislands@gmail.com>
Fri, 19 Jul 2013 09:04:53 +0000 (17:04 +0800)
committers7v7nislands <s7v7nislands@gmail.com>
Fri, 19 Jul 2013 09:04:53 +0000 (17:04 +0800)
docs/dev/todo.rst
docs/user/intro.rst
docs/user/quickstart.rst

index 794c3fea73912f9cae7907f9fa6f2765a602d7ec..ec33b7fb4c1b23c8d6804894d2cd93ba0ebaf91d 100644 (file)
@@ -55,6 +55,6 @@ Are you crazy?
 - SPDY support would be awesome. No C extensions.
 
 Downstream Repackaging
---------------------
+----------------------
 
 If you are repackaging Requests, please note that you must also redistribute the ``cacerts.pem`` file in order to get correct SSL functionality.
index ae5e6393ee2d7720540f429bf6378180874a87e0..816ad0a42abe0377ce33d8a6266ae733669ef182 100644 (file)
@@ -20,7 +20,7 @@ All contributions to Requests should keep these important rules in mind.
 .. _`apache2`:
 
 Apache2 License
------------
+---------------
 
 A large number of open source projects you find today are `GPL Licensed`_.
 While the GPL has its time and place, it should most certainly not be your
index 59d75ccb62f8d858eefed192f0ecb256d1c665a8..0c89b40e85691808689863fe8ac13af14efe8052 100644 (file)
@@ -69,7 +69,7 @@ following code::
 You can see that the URL has been correctly encoded by printing the URL::
 
     >>> print r.url
-    u'http://httpbin.org/get?key2=value2&key1=value1'
+    http://httpbin.org/get?key2=value2&key1=value1
 
 
 Response Content
@@ -81,7 +81,7 @@ again::
     >>> import requests
     >>> r = requests.get('https://github.com/timeline.json')
     >>> r.text
-    '[{"repository":{"open_issues":0,"url":"https://github.com/...
+    u'[{"repository":{"open_issues":0,"url":"https://github.com/...
 
 Requests will automatically decode content from the server. Most unicode
 charsets are seamlessly decoded.
@@ -310,11 +310,6 @@ So, we can access the headers using any capitalization we want::
     >>> r.headers.get('content-type')
     'application/json; charset=utf-8'
 
-If a header doesn't exist in the Response, its value defaults to ``None``::
-
-    >>> r.headers['X-Random']
-    None
-
 
 Cookies
 -------