Skip to content

Commit 72fd09f

Browse files
author
Wazabii
committed
Extend parse body support
1 parent 6a75ae2 commit 72fd09f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ServerRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ public function getParsedBody(): null|array|object
195195
case "application/x-www-form-urlencoded":
196196
parse_str($contents, $this->parsedBody);
197197
break;
198+
case "multipart/form-data":
199+
$this->parsedBody = $_POST;
200+
break;
198201
case "application/json":
199202
$this->parsedBody = json_decode($contents, true);
200203
break;

0 commit comments

Comments
 (0)