Skip to content

Fix FTBS in Fedora - rawhide#92

Open
xsuchy wants to merge 1 commit into
release-engineering:mainfrom
xsuchy:ftbs
Open

Fix FTBS in Fedora - rawhide#92
xsuchy wants to merge 1 commit into
release-engineering:mainfrom
xsuchy:ftbs

Conversation

@xsuchy

@xsuchy xsuchy commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

CGIHTTPRequestHandler was removed from http.server in Python 3.15 with no drop-in replacement. Replace it with a custom BaseHTTPRequestHandler subclass that invokes the CGI script via subprocess, matching the original behavior (always HTTP 200, CGI headers stripped from response body).

  • Use BaseHTTPRequestHandler + subprocess.run to invoke upload.cgi
  • Set up CGI environment variables (REQUEST_METHOD, CONTENT_TYPE, etc.)
  • Parse CGI output to separate headers from body

Assisted-By: Claude Opus 4.6 noreply@anthropic.com

CGIHTTPRequestHandler was removed from http.server in Python 3.15
with no drop-in replacement. Replace it with a custom
BaseHTTPRequestHandler subclass that invokes the CGI script via
subprocess, matching the original behavior (always HTTP 200, CGI
headers stripped from response body).

- Use BaseHTTPRequestHandler + subprocess.run to invoke upload.cgi
- Set up CGI environment variables (REQUEST_METHOD, CONTENT_TYPE, etc.)
- Parse CGI output to separate headers from body

Assisted-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant