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 bug #68207: Setting fastcgi.error_header can result in a WARNING #9980

Closed
wants to merge 1 commit into from

Conversation

bukka
Copy link
Member

@bukka bukka commented Nov 21, 2022

It seems that the original issue has been fixed already as FPM doesn't send headers before the request end so it is still possible to change header line in the reported example. However there is still an edge case when the warning is emitted if there is an error after calling fastcgi_finish_request(). The message has got also a wrong script and line as it come from FPM so it is unknown. The PR adds a check for sent headers and does not try to change it which makes more sense for sure.

The actual change is really small but the main work was to extend tester to allow testing of no pattern match. I also added slightly unrelated extension in the tester for the log entries which is not used here but it's consistent and possibly useful in the future.

@bukka
Copy link
Member Author

bukka commented Nov 22, 2022

Merged via 5a4520b . Travis error in the pipeline not related btw.

@bukka bukka closed this Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant