diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-15 00:27:33 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2022-10-15 00:27:33 +0200 |
commit | 3aa2c79d80e17ed1ca02e7698e68218d57bfb47b (patch) | |
tree | 1a49e5c7046d070dacdd9962552dbba5d38b016a /_pytest/test_eventrouter.py | |
parent | f7a6193e57dd116ad20d531ccdab22d48959656e (diff) | |
download | wee-slack-3aa2c79d80e17ed1ca02e7698e68218d57bfb47b.tar.gz |
Support receiving multiple header blocks in http responses
One user experiences receiving a "HTTP/1.1 200 Connection established"
header block before a "HTTP/2 200" header block with the headers. I'm
not sure why specifically this happens, but I know a similar response
will happen if redirects are followed.
This wasn't supported by the http_check_ratelimited function which
splits the header from the body. It now splits out all the header blocks
from the body and uses the status and headers from the last one.
Diffstat (limited to '_pytest/test_eventrouter.py')
0 files changed, 0 insertions, 0 deletions