Headers not being correctly validated as bytes.
See original GitHub issueRefs https://github.com/django/channels/issues/1331.
After e93643ff5a2797f05e88bc59800d7b4dbf41765d header should be validated.
But the example provided in https://github.com/yuriiz/myproject/ just hangs.
Looking at it in the debugger the ValueError
is raised but just disappears™ — it’s doesn’t correctly lead to an error response being returned. 🤔
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Return error when content-length header does not match ...
The issue only applies to streams that have fewer bytes than the content-length indicates, so it should be able to be detected by...
Read more >HTTP Range header - Stack Overflow
The request is perfectly valid, but the last byte of the the 100byte file of the example is at position 99. Therefore the...
Read more >HTTP/1.1: Header Field Definitions
If a request is authenticated and a realm specified, the same credentials SHOULD be valid for all other requests within this realm (assuming...
Read more >HTTP conditional requests - MDN Web Docs - Mozilla
Strong validation consists of guaranteeing that the resource is, byte to byte, identical to the one it is compared to. This is mandatory...
Read more >Understanding response headers policies - Amazon CloudFront
Specifies the referrer policy directive that CloudFront uses as the value for the Referrer-Policy response header. Valid values for this setting are no-referrer...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Always the way. I’ll take a look later on. Thanks!
Thank you!
I had an idea while doing the laundry – let’s see what Travis CI and reviewers say https://github.com/django/channels/pull/1334