Skip to content

fix(response headers): replace single header instead of overwriting them all#118

Merged
jasonbahl merged 1 commit intowp-graphql:developfrom
tsmith-rv:develop
Oct 25, 2022
Merged

fix(response headers): replace single header instead of overwriting them all#118
jasonbahl merged 1 commit intowp-graphql:developfrom
tsmith-rv:develop

Conversation

@tsmith-rv
Copy link
Copy Markdown
Contributor

updated to call the 'header' instead of 'set_headers' method when writing response headers to avoid
overwriting all the headers such as X-WP-Total and X-WP-TotalPages which are necessary for different
plugins and pieces of Wordpress to work properly

updated to call the 'header' instead of 'set_headers' method when writing response headers to avoid
overwriting all the headers such as X-WP-Total and X-WP-TotalPages which are necessary for different
plugins and pieces of Wordpress to work properly
@rodrigo-arias
Copy link
Copy Markdown

Hi @jasonbahl this fixes some issues for me and from what I see for other folks, do you think you can merge it or do you see any side effects?

@matthijs166
Copy link
Copy Markdown

We have the same issues this plugin is breaking some of our REST API apps

@kpoelhekke
Copy link
Copy Markdown

Would love to see this merged, currently Woocommerce Analytics is partly broken because of this. 👀

@tsmith-rv
Copy link
Copy Markdown
Contributor Author

Coming up on the 2 year anniversary of when I opened this PR — not quite sure how I'll celebrate yet. I'm pretty low key, but it never hurts to go all out every once in a while.

@jasonbahl
Copy link
Copy Markdown
Collaborator

@tsmith-rv 🥳

@jasonbahl jasonbahl merged commit cf86790 into wp-graphql:develop Oct 25, 2022
@jasonbahl
Copy link
Copy Markdown
Collaborator

Released: https://github.com/wp-graphql/wp-graphql-jwt-authentication/releases/tag/v0.6.0

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.

5 participants