Skip to content

[3.x.x][client] Remove duplicate header #867

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

Merged
merged 3 commits into from
Sep 4, 2020
Merged

[3.x.x][client] Remove duplicate header #867

merged 3 commits into from
Sep 4, 2020

Conversation

smyrick
Copy link
Contributor

@smyrick smyrick commented Sep 3, 2020

📝 Description

Copy changes over to 3.x.x branch

It looks like the application/json accept header is set by install(feature = JsonFeature) on line 48 as well as accept(ContentType.Application.Json) on line 54. This causes a duplicate Accept header during the introspection query Gradle task.

Spring handles the duplicate Accept header, but Jersey returns an 400 Bad Request when receiving the header.Accept: application/json;application/json

🔗 Related Issues

#865

Copy changes over from #865 to `3.x.x` branch
@smyrick smyrick added type: bug Something isn't working changes: patch Changes require a patch version labels Sep 3, 2020
@dariuszkuc
Copy link
Collaborator

Pretty sure we will have to remove it from the client as well -> https://github.com/ExpediaGroup/graphql-kotlin/blob/3.x.x/graphql-kotlin-client/src/main/kotlin/com/expediagroup/graphql/client/GraphQLClient.kt#L85

@smyrick smyrick changed the title Remove duplicate header [3.x.x][client] Remove duplicate header Sep 4, 2020
@smyrick smyrick merged commit b66d30e into 3.x.x Sep 4, 2020
@smyrick smyrick deleted the smyrick-patch-1 branch September 4, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version type: bug Something isn't working
Development

Successfully merging this pull request may close these issues.

3 participants