Skip to content

Commit 7ab29d4

Browse files
author
Christian Wenzel
committed
Set Content Type header to application/json
1 parent da310fa commit 7ab29d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/Flowpack/ElasticSearch/Transfer/RequestService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public function request($method, \Flowpack\ElasticSearch\Domain\Model\Client $cl
8888
$requestUri->setUsername($uri->getUsername());
8989
$requestUri->setPassword($uri->getPassword());
9090
}
91-
91+
92+
$request->setHeader('Content-Type', 'application/json');
9293
$response = $this->browser->sendRequest($request);
9394
return new Response($response, $this->browser->getLastRequest());
9495
}

0 commit comments

Comments
 (0)