Skip to content

Commit b3edf1a

Browse files
committed
Allowing for parsing via native php
1 parent 36fe0b5 commit b3edf1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GuahanWeb/Http/request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function parseBody() {
6969

7070
// Process POST and PUT appropriately
7171
$data = null;
72-
if (isset($this->headers['Content-Type']) && $this->headers['Content-Type'] == 'multipart/form-data') {
72+
if (isset($_POST)) {
7373
$data = $_POST;
7474
} else {
7575
// handle raw body, and parse if content-type if application/json

0 commit comments

Comments
 (0)