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

Json(async-graphql::Response) not adding existing headers #79

Closed
DenisAloner opened this issue Nov 5, 2021 · 2 comments
Closed

Json(async-graphql::Response) not adding existing headers #79

DenisAloner opened this issue Nov 5, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@DenisAloner
Copy link

Json(async-graphql::Response) not adding headers that was insert in async-graphql::Response via context (ctx.insert_http_header).

@DenisAloner DenisAloner added the bug Something isn't working label Nov 5, 2021
@sunli829
Copy link
Collaborator

sunli829 commented Nov 5, 2021

Json(async-graphql::Response) not adding headers that was insert in async-graphql::Response via context (ctx.insert_http_header).

This is not a bug. If you want to respond async_graphql::Response, you should wrap it with async_graphql_poem::GraphQLResponse, or use the poem::GraphQL endpoint directly.

@DenisAloner
Copy link
Author

Thanks for the explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants