Title: `BaseHTTPRequestHandler` incorrectly expects headers from HTTP/0.9 requests · Issue #139492 · python/cpython · GitHub
Open Graph Title: `BaseHTTPRequestHandler` incorrectly expects headers from HTTP/0.9 requests · Issue #139492 · python/cpython
X Title: `BaseHTTPRequestHandler` incorrectly expects headers from HTTP/0.9 requests · Issue #139492 · python/cpython
Description: Bug report Bug description: The HTTPServer class seems to have issues with pre-HTTP 1.0 type requests. The request is not passed to the GET handler until the client closes the connection. Maybe the BaseHTTPRequestHandler tries to read no...
Open Graph Description: Bug report Bug description: The HTTPServer class seems to have issues with pre-HTTP 1.0 type requests. The request is not passed to the GET handler until the client closes the connection. Maybe the...
X Description: Bug report Bug description: The HTTPServer class seems to have issues with pre-HTTP 1.0 type requests. The request is not passed to the GET handler until the client closes the connection. Maybe the...
Opengraph URL: https://github.com/python/cpython/issues/139492
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`BaseHTTPRequestHandler` incorrectly expects headers from HTTP/0.9 requests","articleBody":"# Bug report\n\n### Bug description:\n\nThe `HTTPServer` class seems to have issues with pre-HTTP 1.0 type requests. The request is not passed to the `GET` handler until the client closes the connection.\n\nMaybe the `BaseHTTPRequestHandler` tries to read non-existent headers or wants an empty line in the request?\n\n### CPython versions tested on:\n\n3.12\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-139514\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Carmina16","@type":"Person","name":"Carmina16"},"datePublished":"2025-10-02T10:25:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/139492/cpython/issues/139492"}
| 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:bb92c95e-745f-3ede-c862-093361db5098 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A640:2DD042:2FB01:3D7CA:696B3182 |
| html-safe-nonce | 02ea2f63e29fb79f2ee4d9af99d2d51bd9eb414f8042e1a8367dc6fdc110d75d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjQwOjJERDA0MjoyRkIwMTozRDdDQTo2OTZCMzE4MiIsInZpc2l0b3JfaWQiOiIyNjM3NDMzNjcxODUyNDM3ODkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 88c017636213d7a96abbbd7936574507ccd1ad9615aa6821391e1fbfcf1843bf |
| hovercard-subject-tag | issue:3476961800 |
| 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/cpython/139492/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3899c12bc609fa5c0311f5d15fc92847d23ca533fd1017c44a89edcb9192f5a/python/cpython/issues/139492 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3899c12bc609fa5c0311f5d15fc92847d23ca533fd1017c44a89edcb9192f5a/python/cpython/issues/139492 |
| og:image:alt | Bug report Bug description: The HTTPServer class seems to have issues with pre-HTTP 1.0 type requests. The request is not passed to the GET handler until the client closes the connection. Maybe the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Carmina16 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width