Title: Consider policing content-length. · Issue #114 · python-hyper/h2 · GitHub
Open Graph Title: Consider policing content-length. · Issue #114 · python-hyper/h2
X Title: Consider policing content-length. · Issue #114 · python-hyper/h2
Description: This is an interesting idea: should we reject invalid content-lengths? RFC 7540 § 8.1.2.6 says so: A request or response that includes a payload body can include a content-length header field. A request or response is also malformed if t...
Open Graph Description: This is an interesting idea: should we reject invalid content-lengths? RFC 7540 § 8.1.2.6 says so: A request or response that includes a payload body can include a content-length header field. A re...
X Description: This is an interesting idea: should we reject invalid content-lengths? RFC 7540 § 8.1.2.6 says so: A request or response that includes a payload body can include a content-length header field. A re...
Opengraph URL: https://github.com/python-hyper/h2/issues/114
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider policing content-length.","articleBody":"This is an interesting idea: should we reject invalid content-lengths? RFC 7540 § 8.1.2.6 says so:\n\n> A request or response that includes a payload body can include a content-length header field. A request or response is also malformed if the value of a content-length header field does not equal the sum of the DATA frame payload lengths that form the body.\n> \n> Malformed requests or responses that are detected MUST be treated as a stream error (Section 5.4.2) of type PROTOCOL_ERROR.\n\nThis suggests that we should be keeping track of this. However, I'm a bit nervous that tools like mitmproxy may want to let the invalid stream stand, despite RFC 7540 warning against this:\n\n> Intermediaries that process HTTP requests or responses (i.e., any intermediary not acting as a tunnel) MUST NOT forward a malformed request or response.\n\nThe other option would be to require that the policing of the content length be done by the tools that wrap hyper-h2.\n\n@Kriechi @mhils thoughts?\n","author":{"url":"https://github.com/Lukasa","@type":"Person","name":"Lukasa"},"datePublished":"2016-01-14T11:02:36Z","url":"https://github.com/python-hyper/h2/issues/114"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f4536a23-02df-b1ca-b37e-3e966100423f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACC2:A3A21:1EA5422:2AB8419:6B06F195 |
| html-safe-nonce | 902353b26302790b47d46b937fb1c9725bedee95c2800a6a26a08914963614d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0MyOkEzQTIxOjFFQTU0MjI6MkFCODQxOTo2QjA2RjE5NSIsInZpc2l0b3JfaWQiOiIzNjQxOTg3NzE2MzY0OTg4MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d51fd33cf81f7dc7d254ca69381b3920c76736c852fa364655bc3ce05780d23e |
| hovercard-subject-tag | issue:126631695 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/h2/114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0748a8d5d180377580625bdd17949724ebd245edaae61e43a79ee7a0448597d5/python-hyper/h2/issues/114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0748a8d5d180377580625bdd17949724ebd245edaae61e43a79ee7a0448597d5/python-hyper/h2/issues/114 |
| og:image:alt | This is an interesting idea: should we reject invalid content-lengths? RFC 7540 § 8.1.2.6 says so: A request or response that includes a payload body can include a content-length header field. A re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lukasa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/h2 git https://github.com/python-hyper/h2.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 37996233 |
| octolytics-dimension-repository_nwo | python-hyper/h2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37996233 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/h2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 891bde3f438884e9c6c7ccd826f33805910a978b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width