Skip to content

Commit ed1dc44

Browse files
authored
Merge pull request yidao620c#296 from chenke23/patch-1
response.json->response.json()
2 parents c2cd8c6 + 481c358 commit ed1dc44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c11/p01_interact_with_http_services_as_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
>>> import requests
195195
>>> r = requests.get('http://httpbin.org/get?name=Dave&n=37',
196196
... headers = { 'User-agent': 'goaway/1.0' })
197-
>>> resp = r.json
197+
>>> resp = r.json()
198198
>>> resp['headers']
199199
{'User-Agent': 'goaway/1.0', 'Content-Length': '', 'Content-Type': '',
200200
'Accept-Encoding': 'gzip, deflate, compress', 'Connection':

0 commit comments

Comments
 (0)