question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Headers not being correctly validated as bytes.

See original GitHub issue

Refs 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
carltongibsoncommented, Aug 11, 2019

Always the way. I’ll take a look later on. Thanks!

1reaction
matthiaskcommented, Aug 11, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found