Skip to content

Commit 386cdc4

Browse files
committed
TASK: Rewind response
1 parent 8795c13 commit 386cdc4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Classes/Http/RequestStorageComponent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,7 @@ public function handle(ComponentContext $componentContext)
5858

5959
$modifiedResponse = $response->withHeader('X-Storage-Component', $entryIdentifier);
6060
$this->cacheFrontend->set($entryIdentifier, str($modifiedResponse), $tags, $lifetime);
61+
// TODO: because stream is copied ot the modifiedResponse we would get empty output on first request
62+
$response->getBody()->rewind();
6163
}
6264
}

0 commit comments

Comments
 (0)