Skip to content

Commit

Permalink
Account for Apollo-link bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Feb 17, 2020
1 parent f46a4c4 commit 934f001
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/infra/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ export class Plugin
core.http
.fetch(path, {
...options,
// Set headers to undefined due to this bug: https://github.com/apollographql/apollo-link/issues/249,
// Apollo will try to set a "content-type" header which will conflict with the "Content-Type" header that
// core.http.fetch correctly sets.
headers: undefined,
asResponse: true,
})
.then(res => {
Expand Down

0 comments on commit 934f001

Please sign in to comment.