Skip to content

Commit

Permalink
Fix: max body size option should actually be passed to HttpServer
Browse files Browse the repository at this point in the history
Error: Max body size option was not honored
Caused by: $options->withMaxBodySize() returns a new instance containing that option, but that instance was not used
  • Loading branch information
youwe-petervanderwal committed Jul 16, 2024
1 parent 5aaef40 commit 9f61ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/HttpProducersServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function start(): Promise
$options = null;
if ($this->maxBodySize !== null) {
$options = new Options();
$options->withBodySizeLimit($this->maxBodySize);
$options = $options->withBodySizeLimit($this->maxBodySize);
}

$this->httpServer = new HttpServer(
Expand Down

0 comments on commit 9f61ae4

Please sign in to comment.