Skip to content

Commit

Permalink
[3.5] Update multipart.rst (#3903) (#3913)
Browse files Browse the repository at this point in the history
The boundary should not start with -- in http headers, only in the body.
At least according to:
https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
(cherry picked from commit 64a8698)

Co-authored-by: Ten10 <[email protected]>
  • Loading branch information
asvetlov and kei-nan authored Jul 19, 2019
1 parent 185eca1 commit f73d59a
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 @@ -196,7 +196,7 @@ content. Providing `close_boundary = False` prevents this.::
status=200,
reason='OK',
headers={
'Content-Type': 'multipart/x-mixed-replace;boundary=--%s' % my_boundary
'Content-Type': 'multipart/x-mixed-replace;boundary={}'.format(my_boundary)
}
)
while True:
Expand Down

0 comments on commit f73d59a

Please sign in to comment.