made the quickstart more reader friendly. Closes #2418
authorM.Yasoob Ullah Khalid ☺ <yasoob.khld@gmail.com>
Sat, 14 Mar 2015 20:02:09 +0000 (01:02 +0500)
committerM.Yasoob Ullah Khalid ☺ <yasoob.khld@gmail.com>
Sat, 14 Mar 2015 20:02:09 +0000 (01:02 +0500)
docs/user/quickstart.rst

index 6fd3602e40ee360edb6f518b6452e13cb0090608..6573b462098e1be0735705852739e96983f4978e 100644 (file)
@@ -186,10 +186,9 @@ For example, we didn't specify our content-type in the previous example::
 
     >>> import json
     >>> url = 'https://api.github.com/some/endpoint'
-    >>> payload = {'some': 'data'}
-    >>> headers = {'content-type': 'application/json'}
+    >>> headers = {'user-agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36'}
 
-    >>> r = requests.post(url, data=json.dumps(payload), headers=headers)
+    >>> r = requests.get(url, headers=headers)
 
 
 More complicated POST requests