We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ec7da commit 26ec787Copy full SHA for 26ec787
h11/_abnf.py
@@ -125,5 +125,8 @@
125
chunk_header = (
126
r"(?P<chunk_size>{chunk_size})"
127
r"(?P<chunk_ext>{chunk_ext})?"
128
- r"\r\n".format(**globals())
+ r"{OWS}\r\n".format(
129
+ **globals()
130
+ ) # Even though the specification does not allow for extra whitespaces,
131
+ # we are lenient with trailing whitespaces because some servers on the wild use it.
132
)
0 commit comments