-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Documentation Error for Response parameters #944
Copy link
Copy link
Closed
Labels
Milestone
Description
Currently, the documentation for
class aiohttp.web.Response(*, status=200, headers=None, content_type=None, charset=None, body=None, text=None)
states that
content_type (str) – response’s content type. 'text/plain' if text is passed also, 'application/octet-stream' otherwise.
However, if I do not set the text argument (but set the body argument instead) the content_type is not set at all (whereas the documentation says it should be automatically set to application/octet-stream).
Python 3.5.1 and aiohttp 0.21.0
Reactions are currently unavailable