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

Commit 392c2c2

Browse files
committed
Switch headers/body in example doc.
1 parent 23e944f commit 392c2c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/quickstart.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ For example::
100100

101101
>>> from hyper import HTTPConnection
102102
>>> c = HTTPConnection('http2bin.org')
103-
>>> first = c.request('GET', '/get', body='hello')
104-
>>> second = c.request('POST', '/post', headers={'key':'value'})
103+
>>> first = c.request('GET', '/get', headers={'key': 'value'})
104+
>>> second = c.request('POST', '/post', body=b'hello')
105105
>>> third = c.request('GET', '/ip')
106106
>>> second_response = c.get_response(second)
107107
>>> first_response = c.get_response(first)

0 commit comments

Comments
 (0)