Skip to content

Commit e890ed8

Browse files
committed
BUGFIX: Fix getting from content from PSR-7 response
1 parent 2e65a33 commit e890ed8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/Driver/Version5/RequestDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
declare(strict_types=1);
43

54
namespace Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\Version5;
@@ -29,6 +28,7 @@ class RequestDriver extends AbstractDriver implements RequestDriverInterface
2928
/**
3029
* {@inheritdoc}
3130
* @throws \Flowpack\ElasticSearch\Exception
31+
* @throws \Neos\Flow\Http\Exception
3232
*/
3333
public function bulk(Index $index, $request): array
3434
{
@@ -39,7 +39,7 @@ public function bulk(Index $index, $request): array
3939
// Bulk request MUST end with line return
4040
$request = trim($request) . "\n";
4141

42-
$response = $index->request('POST', '/_bulk', [], $request)->getOriginalResponse()->getContent();
42+
$response = $index->request('POST', '/_bulk', [], $request)->getOriginalResponse()->getBody()->getContents();
4343

4444
return array_map('json_decode', explode("\n", $response));
4545
}

0 commit comments

Comments
 (0)