Skip to content

Commit 080238a

Browse files
authored
Merge pull request #8 from jeis4n/patch-1
Fixed Content-Type json UTF-8
2 parents 368624d + 773cc8f commit 080238a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static function input($safeData = true)
105105
$param = explode("=", $chunk);
106106
$data[$param[0]] = $param[1];
107107
}
108-
} else if (Headers::get('Content-Type') !== 'application/json' && strpos(Headers::get('Content-Type'), "multipart/form-data") !== 0) {
108+
} else if (strpos(Headers::get('Content-Type'), "application/json") !== 0 && strpos(Headers::get('Content-Type'), "multipart/form-data") !== 0) {
109109
$safeData = false;
110110
$data = [$data];
111111
} else {

0 commit comments

Comments
 (0)