Merge pull request #296 from chenke23/patch-1

response.json->response.json()
This commit is contained in:
XiongNeng
2019-07-24 23:46:34 +08:00
committed by GitHub

View File

@@ -194,7 +194,7 @@
>>> import requests
>>> r = requests.get('http://httpbin.org/get?name=Dave&n=37',
... headers = { 'User-agent': 'goaway/1.0' })
>>> resp = r.json
>>> resp = r.json()
>>> resp['headers']
{'User-Agent': 'goaway/1.0', 'Content-Length': '', 'Content-Type': '',
'Accept-Encoding': 'gzip, deflate, compress', 'Connection':