Skip to content

Commit

Permalink
delete request.headers['transfer-encoding'] being passed through from…
Browse files Browse the repository at this point in the history
… epm request
  • Loading branch information
neptunian committed Dec 14, 2019
1 parent 1e85c5b commit 007dc6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/legacy/plugins/epm/server/datasources/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async function saveDatasourceReferences(options: {
// or something similar, but it's a class not an object so many pieces are missing
// we'd still need `user` from the request object, but that's not terrible
// lacking that we make another http request to Ingest
await ingestDatasourceCreate({ request, datasource });;
await ingestDatasourceCreate({ request, datasource });

return toInstall;
}
Expand Down Expand Up @@ -170,7 +170,7 @@ async function ingestDatasourceCreate({
const apiPath = '/api/ingest/datasources';
const url = `${origin}${basePath}${apiPath}`;
const body = { datasource };

delete request.headers['transfer-encoding'];
return fetch(url, {
method: 'post',
body: JSON.stringify(body),
Expand Down

0 comments on commit 007dc6f

Please sign in to comment.