Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reset sapi response code #964

Merged
merged 4 commits into from
Aug 11, 2024
Merged

fix: reset sapi response code #964

merged 4 commits into from
Aug 11, 2024

Conversation

withinboredom
Copy link
Collaborator

@withinboredom withinboredom commented Aug 11, 2024

It turns out that the zend engine does NOT reset the sapi response code between requests. This PR resets the response code when configuring a new request -- as it appears to affect workers AND non-worker requests.

fixes: #960

It turns out that the sapi response code is NOT reset between requests by the zend engine. This resets the code for cgi-based requests.
fixes: #960
@withinboredom withinboredom requested a review from dunglas August 11, 2024 09:03
@withinboredom withinboredom self-assigned this Aug 11, 2024
@withinboredom withinboredom merged commit d532772 into main Aug 11, 2024
45 checks passed
@withinboredom withinboredom deleted the fix/sapi-code branch August 11, 2024 20:34
@ochorocho
Copy link
Contributor

Thanks for fixing this issue. Was facing that issues just yesterday.

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.

Non 200 responses on 1.2.3
3 participants