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: content-type: application/graphql; encoding=utf-8 #1124

Merged
merged 2 commits into from
Nov 4, 2021
Merged

fix: content-type: application/graphql; encoding=utf-8 #1124

merged 2 commits into from
Nov 4, 2021

Conversation

frekw
Copy link
Collaborator

@frekw frekw commented Nov 3, 2021

No description provided.

val contentType = r.getContentType
contentType.map(ct => HttpUtil.getMimeType(ct).toString == "application/graphql").getOrElse(false)
}

private val contentTypeApplicationGraphQL: Header =
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this function be deleted then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sorry. Missed it since I did the initial fix in a project-local copy to be able to test the fix more easily :/

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if using the tapir adapter, the issue would be automatically fixed (I pinged you on Discord about that topic).

@ghostdogpr ghostdogpr merged commit 52ec847 into ghostdogpr:master Nov 4, 2021
@frekw frekw deleted the fix/content-type-with-encoding branch November 4, 2021 08:33
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.

2 participants