Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 853a6d7

Browse files
committed
Merge pull request #118 from sigmavirus24/docs-fix
Fix two minor documentation bugs
2 parents 2318731 + 3779b13 commit 853a6d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ improved speed, lower bandwidth usage, better connection management, and more.
1818

1919
conn = HTTP20Connection('http2bin.org:443')
2020
conn.request('GET', '/get')
21-
resp = conn.getresponse()
21+
resp = conn.get_response()
2222

2323
print(resp.read())
2424

docs/source/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ For example::
104104
>>> from hyper import HTTP20Connection
105105
>>> c = HTTP20Connection('http2bin.org')
106106
>>> first = c.request('GET', '/get')
107-
>>> second = c.request('POST', '/post', data='key=value')
107+
>>> second = c.request('POST', '/post', body='key=value')
108108
>>> third = c.request('GET', '/ip')
109109
>>> second_response = c.getresponse(second)
110110
>>> first_response = c.getresponse(first)

0 commit comments

Comments
 (0)