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

Commit 47e93fa

Browse files
committed
Correctly reference headers.
1 parent e734769 commit 47e93fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/source/quickstart.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ come back to it.
7676

7777
Once you've got the data, things diverge a little bit::
7878

79-
>>> resp.header('content-type')
80-
'text/html; charset=utf-8'
79+
>>> resp.headers['content-type']
80+
[b'text/html; charset=utf-8']
8181
>>> resp.headers
82-
HTTPHeaderMap([('server', 'h2o/1.0.2-alpha1')...
82+
HTTPHeaderMap([(b'server', b'h2o/1.0.2-alpha1')...
8383
>>> resp.status
8484
200
8585

@@ -136,8 +136,8 @@ not have streams.
136136
Things behave exactly like they do in the HTTP/2 case, right down to the data
137137
reading::
138138

139-
>>> resp.getheader('content-encoding')
140-
'deflate'
139+
>>> resp.headers['content-encoding']
140+
[b'deflate']
141141
>>> resp.headers
142142
HTTPHeaderMap([(b'x-xss-protection', b'1; mode=block')...
143143
>>> resp.status

0 commit comments

Comments
 (0)