Skip to content

Commit 481c358

Browse files
authored
Update p01_interact_with_http_services_as_client.rst
1 parent c2cd8c6 commit 481c358

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)