Skip to content

Commit 164f69c

Browse files
committed
Keep body size limit for AMP redirects
1 parent 738bc9d commit 164f69c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Response/AmpResponse.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ private static function followRedirects(Request $originRequest, AmpClientState $
329329
$request->setTcpConnectTimeout($originRequest->getTcpConnectTimeout());
330330
$request->setTlsHandshakeTimeout($originRequest->getTlsHandshakeTimeout());
331331
$request->setTransferTimeout($originRequest->getTransferTimeout());
332+
$request->setBodySizeLimit($originRequest->getBodySizeLimit());
332333

333334
if (303 === $status || \in_array($status, [301, 302], true) && 'POST' === $response->getRequest()->getMethod()) {
334335
// Do like curl and browsers: turn POST to GET on 301, 302 and 303

0 commit comments

Comments
 (0)