René's URL Explorer Experiment


Title: Reject request header blocks with bad :authority/Host headers by alexwlchan · Pull Request #252 · python-hyper/h2 · GitHub

Open Graph Title: Reject request header blocks with bad :authority/Host headers by alexwlchan · Pull Request #252 · python-hyper/h2

X Title: Reject request header blocks with bad :authority/Host headers by alexwlchan · Pull Request #252 · python-hyper/h2

Description: This is a WIP attempt at #245 and #246. So far I’ve done the case where we receive header blocks that don’t work under these rules; I haven’t tried to enforce it for header blocks that we send. It turns out a lot of the example responses in the tests don’t include these headers – given what was said in the original issue, I’m assuming that was just an oversight? Specific questions: Does it look okay so far? What's the appropriate action when we try to send header blocks that don’t meet these rules? Is there a way to auto-fill that information, or should we be raising an exception? Since this is part of the HTTP/2 spec, and not a hyper-specific feature, does it need any documentation?

Open Graph Description: This is a WIP attempt at #245 and #246. So far I’ve done the case where we receive header blocks that don’t work under these rules; I haven’t tried to enforce it for header blocks that we send. It ...

X Description: This is a WIP attempt at #245 and #246. So far I’ve done the case where we receive header blocks that don’t work under these rules; I haven’t tried to enforce it for header blocks that we send. It ...

Opengraph URL: https://github.com/python-hyper/h2/pull/252

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8139d92a-26bf-fd12-2083-8ee33c0d72bf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE28A:C001D:18B6AE9:2204751:6B07145D
html-safe-noncecaa7baa681fa4c5abf8b5a9291dea21c716fc0cbb949e0c25d5867d1480bca3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjhBOkMwMDFEOjE4QjZBRTk6MjIwNDc1MTo2QjA3MTQ1RCIsInZpc2l0b3JfaWQiOiIzMjY3NjIzNDYwMDMzNDY3NDg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac24cb1506f5cf03818ef471fab3ad1a7e30197aec86e5d21ad2f9548c4457eed5
hovercard-subject-tagpull_request:76715465
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-hyper/h2/pull/252/files
twitter:imagehttps://avatars.githubusercontent.com/u/301220?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/301220?s=400&v=4
og:image:altThis is a WIP attempt at #245 and #246. So far I’ve done the case where we receive header blocks that don’t work under these rules; I haven’t tried to enforce it for header blocks that we send. It ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5a20fe9aa5e45c6df9328a5ec3f167a7805856126d8bf72d810541ca01962ef9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-hyper/h2 git https://github.com/python-hyper/h2.git
octolytics-dimension-user_id13035907
octolytics-dimension-user_loginpython-hyper
octolytics-dimension-repository_id37996233
octolytics-dimension-repository_nwopython-hyper/h2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id37996233
octolytics-dimension-repository_network_root_nwopython-hyper/h2
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6ce961d9a663a99bc4bcab9fd6ac5cca54bd6fcc
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-hyper/h2/pull/252/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-hyper%2Fh2%2Fpull%2F252%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-hyper%2Fh2%2Fpull%2F252%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-hyper%2Fh2
Reloadhttps://github.com/python-hyper/h2/pull/252/files
Reloadhttps://github.com/python-hyper/h2/pull/252/files
Reloadhttps://github.com/python-hyper/h2/pull/252/files
python-hyperhttps://github.com/python-hyper
h2https://github.com/python-hyper/h2
Codehttps://github.com/python-hyper/h2
Issues21 (21)https://github.com/python-hyper/h2/issues
Pull requests23 (23)https://github.com/python-hyper/h2/pulls
Actionshttps://github.com/python-hyper/h2/actions
Projectshttps://github.com/python-hyper/h2/projects
Wikihttps://github.com/python-hyper/h2/wiki
Security and quality2 (2)https://github.com/python-hyper/h2/security
Insightshttps://github.com/python-hyper/h2/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-hyper%2Fh2%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-hyper%2Fh2%2Fissues%2Fnew%2Fchoose
Lukasahttps://github.com/Lukasa
masterhttps://github.com/python-hyper/h2/tree/master
awlc/authority-hosthttps://github.com/python-hyper/h2/tree/awlc/authority-host
Conversation 42 https://github.com/python-hyper/h2/pull/252
Commits 1 https://github.com/python-hyper/h2/pull/252/commits
Checks 0 https://github.com/python-hyper/h2/pull/252/checks
Files changed https://github.com/python-hyper/h2/pull/252/files
Please reload this pagehttps://github.com/python-hyper/h2/pull/252/files
Reject request header blocks with bad :authority/Host headers https://github.com/python-hyper/h2/pull/252/files#top
Show all changes 1 commit https://github.com/python-hyper/h2/pull/252/files
b5e77b4 Reject request header blocks with bad :authority/Host headers alexwlchan Jul 8, 2016 https://github.com/python-hyper/h2/pull/252/commits/b5e77b47994d60084ca734cc35f76e3c4a6a2009
Clear filters https://github.com/python-hyper/h2/pull/252/files
Please reload this pagehttps://github.com/python-hyper/h2/pull/252/files
Please reload this pagehttps://github.com/python-hyper/h2/pull/252/files
HISTORY.rst https://github.com/python-hyper/h2/pull/252/files#diff-e2de3cbc57ab9b097fca7d7c444c094ba3c1d4ee92b36d972d0d9d49669436cc
connection.py https://github.com/python-hyper/h2/pull/252/files#diff-050984d6affada69de2d2cb5fcce7a4f307d191394645d9f788469f7a8bbc093
stream.py https://github.com/python-hyper/h2/pull/252/files#diff-e6fab6b13de7a7091128a014fc3ed296fec94341b7989e45be986300c2e3fa70
utilities.py https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
test_basic_logic.py https://github.com/python-hyper/h2/pull/252/files#diff-749e7107ff19f277821078810a3f027387365eedcabcbd40fef4bafbf1fb692b
test_invalid_headers.py https://github.com/python-hyper/h2/pull/252/files#diff-429715aa43394e79a56ec4a1691b69cd977eacee477e39abb651704a87b13143
HISTORY.rsthttps://github.com/python-hyper/h2/pull/252/files#diff-e2de3cbc57ab9b097fca7d7c444c094ba3c1d4ee92b36d972d0d9d49669436cc
View file https://github.com/python-hyper/h2/blob/b5e77b47994d60084ca734cc35f76e3c4a6a2009/HISTORY.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-hyper/h2/pull/252/{{ revealButtonHref }}
https://github.com/python-hyper/h2/pull/252/files#diff-e2de3cbc57ab9b097fca7d7c444c094ba3c1d4ee92b36d972d0d9d49669436cc
https://github.com/python-hyper/h2/pull/252/files#diff-e2de3cbc57ab9b097fca7d7c444c094ba3c1d4ee92b36d972d0d9d49669436cc
h2/connection.pyhttps://github.com/python-hyper/h2/pull/252/files#diff-050984d6affada69de2d2cb5fcce7a4f307d191394645d9f788469f7a8bbc093
View file https://github.com/python-hyper/h2/blob/b5e77b47994d60084ca734cc35f76e3c4a6a2009/h2/connection.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-hyper/h2/pull/252/{{ revealButtonHref }}
https://github.com/python-hyper/h2/pull/252/files#diff-050984d6affada69de2d2cb5fcce7a4f307d191394645d9f788469f7a8bbc093
https://github.com/python-hyper/h2/pull/252/files#diff-050984d6affada69de2d2cb5fcce7a4f307d191394645d9f788469f7a8bbc093
https://github.com/python-hyper/h2/pull/252/files#diff-050984d6affada69de2d2cb5fcce7a4f307d191394645d9f788469f7a8bbc093
https://github.com/python-hyper/h2/pull/252/files#diff-050984d6affada69de2d2cb5fcce7a4f307d191394645d9f788469f7a8bbc093
h2/stream.pyhttps://github.com/python-hyper/h2/pull/252/files#diff-e6fab6b13de7a7091128a014fc3ed296fec94341b7989e45be986300c2e3fa70
View file https://github.com/python-hyper/h2/blob/b5e77b47994d60084ca734cc35f76e3c4a6a2009/h2/stream.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-hyper/h2/pull/252/{{ revealButtonHref }}
https://github.com/python-hyper/h2/pull/252/files#diff-e6fab6b13de7a7091128a014fc3ed296fec94341b7989e45be986300c2e3fa70
https://github.com/python-hyper/h2/pull/252/files#diff-e6fab6b13de7a7091128a014fc3ed296fec94341b7989e45be986300c2e3fa70
https://github.com/python-hyper/h2/pull/252/files#diff-e6fab6b13de7a7091128a014fc3ed296fec94341b7989e45be986300c2e3fa70
https://github.com/python-hyper/h2/pull/252/files#diff-e6fab6b13de7a7091128a014fc3ed296fec94341b7989e45be986300c2e3fa70
h2/utilities.pyhttps://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
View file https://github.com/python-hyper/h2/blob/b5e77b47994d60084ca734cc35f76e3c4a6a2009/h2/utilities.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-hyper/h2/pull/252/{{ revealButtonHref }}
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
https://github.com/python-hyper/h2/pull/252/files#diff-8f14206df80e22b2823fb9caa24e751f31c2118acf77eac025e77de413edf319
Lukasahttps://github.com/Lukasa
Jul 19, 2016https://github.com/python-hyper/h2/pull/252/files#r71314096
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python-hyper/h2/pull/252/files
test/test_basic_logic.pyhttps://github.com/python-hyper/h2/pull/252/files#diff-749e7107ff19f277821078810a3f027387365eedcabcbd40fef4bafbf1fb692b
View file https://github.com/python-hyper/h2/blob/b5e77b47994d60084ca734cc35f76e3c4a6a2009/test/test_basic_logic.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-hyper/h2/pull/252/{{ revealButtonHref }}
https://github.com/python-hyper/h2/pull/252/files#diff-749e7107ff19f277821078810a3f027387365eedcabcbd40fef4bafbf1fb692b
https://github.com/python-hyper/h2/pull/252/files#diff-749e7107ff19f277821078810a3f027387365eedcabcbd40fef4bafbf1fb692b
test/test_invalid_headers.pyhttps://github.com/python-hyper/h2/pull/252/files#diff-429715aa43394e79a56ec4a1691b69cd977eacee477e39abb651704a87b13143
View file https://github.com/python-hyper/h2/blob/b5e77b47994d60084ca734cc35f76e3c4a6a2009/test/test_invalid_headers.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-hyper/h2/pull/252/{{ revealButtonHref }}
https://github.com/python-hyper/h2/pull/252/files#diff-429715aa43394e79a56ec4a1691b69cd977eacee477e39abb651704a87b13143
https://github.com/python-hyper/h2/pull/252/files#diff-429715aa43394e79a56ec4a1691b69cd977eacee477e39abb651704a87b13143
https://github.com/python-hyper/h2/pull/252/files#diff-429715aa43394e79a56ec4a1691b69cd977eacee477e39abb651704a87b13143
https://github.com/python-hyper/h2/pull/252/files#diff-429715aa43394e79a56ec4a1691b69cd977eacee477e39abb651704a87b13143
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.