Skip to content

Commit

Permalink
Merge pull request #804 from brettcannon/patch-2
Browse files Browse the repository at this point in the history
Fix syntax error in multi-part docs
  • Loading branch information
asvetlov committed Feb 25, 2016
2 parents 496779e + a2edd18 commit 0259c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/multipart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ returned - that's the signal to break the loop::
Both :class:`BodyPartReader` and :class:`MultipartReader` provides access to
body part headers: this allows you to filter parts by their attributes::

if part.headers[aiohttp.hdrs.CONTENT-TYPE] == 'application/json':
if part.headers[aiohttp.hdrs.CONTENT_TYPE] == 'application/json':
metadata = await part.json()
continue

Expand Down

0 comments on commit 0259c09

Please sign in to comment.