Skip to content

Commit

Permalink
bpo-36064: Clarify allowed data types for urllib.request.Request. (GH…
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard authored and willingc committed Mar 29, 2019
1 parent 081158e commit 9e30fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/urllib.request.rst
Expand Up @@ -192,8 +192,8 @@ The following classes are provided:
*data* must be an object specifying additional data to send to the
server, or ``None`` if no such data is needed. Currently HTTP
requests are the only ones that use *data*. The supported object
types include bytes, file-like objects, and iterables. If no
``Content-Length`` nor ``Transfer-Encoding`` header field
types include bytes, file-like objects, and iterables of bytes-like objects.
If no ``Content-Length`` nor ``Transfer-Encoding`` header field
has been provided, :class:`HTTPHandler` will set these headers according
to the type of *data*. ``Content-Length`` will be used to send
bytes objects, while ``Transfer-Encoding: chunked`` as specified in
Expand Down

0 comments on commit 9e30fba

Please sign in to comment.