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

setHttpResponseCode not setting response code within woocommerce_api_{hook} context #584

Open
Xilonz opened this issue Sep 16, 2021 · 0 comments

Comments

@Xilonz
Copy link

Xilonz commented Sep 16, 2021

We're having issues that our webhooks are returning a success header when they shouldn't;

On our php-fpm + nginx setup the wp core function status_header used here as a higher priority than the method setHttpResponseCode function uses.

We've manually patched the setHttpResponseCode function to use the status_header function, and that seems to fix the issue.

We run Lando with the WordPress recipe and we're able to reproduce it there as well as on our servers at Kinsta.

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

No branches or pull requests

1 participant