You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -38,6 +38,8 @@ public function toApiGatewayFormat(bool $multiHeaders = false): array
38
38
}
39
39
}
40
40
41
+
$this->checkHeadersSize($headers, $awsRequestId);
42
+
41
43
// The headers must be a JSON object. If the PHP array is empty it is
42
44
// serialized to `[]` (we want `{}`) so we force it to an empty object.
43
45
$headers = empty($headers) ? new \stdClass : $headers;
@@ -58,7 +60,7 @@ public function toApiGatewayFormat(bool $multiHeaders = false): array
58
60
/**
59
61
* See https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-develop-integrations-lambda.response
echo"$awsRequestId\tWARNING\tThe total size of HTTP response headers is estimated to be above 10 KB, which is the API Gateway limit. If the limit is reached, the HTTP response will be a 500 error.\n";
0 commit comments