Skip to content

Commit e1ea430

Browse files
authored
Merge pull request #70 from volunteerworld/fix_content-type
Set Content Type header to application/json
2 parents da310fa + 7ab29d4 commit e1ea430

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)