mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
chore: remove unnecessary configuration files
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
This commit is contained in:
parent
762d1fb44b
commit
ded0da79b0
@ -45,19 +45,11 @@
|
|||||||
"config": {
|
"config": {
|
||||||
"optimize-autoloader": true,
|
"optimize-autoloader": true,
|
||||||
"preferred-install": "dist",
|
"preferred-install": "dist",
|
||||||
"sort-packages": true,
|
"sort-packages": true
|
||||||
"allow-plugins": {
|
|
||||||
"cweagans/composer-patches": true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"laravel": {
|
"laravel": {
|
||||||
"dont-discover": []
|
"dont-discover": []
|
||||||
},
|
|
||||||
"patches": {
|
|
||||||
"joanhey/adapterman": {
|
|
||||||
"http": "patches/Http.patch"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
diff --git a/src/Http.php b/src/Http.php
|
|
||||||
index 6c6cb16..f1a7f3f 100644
|
|
||||||
--- a/src/Http.php
|
|
||||||
+++ b/src/Http.php
|
|
||||||
@@ -680,7 +680,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
// Parse $_POST.
|
|
||||||
- if ($_SERVER['REQUEST_METHOD'] === 'POST' && $_SERVER['CONTENT_TYPE']) {
|
|
||||||
+ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
||||||
switch ($_SERVER['CONTENT_TYPE']) {
|
|
||||||
case 'multipart/form-data':
|
|
||||||
static::parseUploadFiles($http_body, $http_post_boundary);
|
|
||||||
@@ -691,6 +691,8 @@
|
|
||||||
case 'application/x-www-form-urlencoded':
|
|
||||||
\parse_str($http_body, $_POST);
|
|
||||||
break;
|
|
||||||
+ default:
|
|
||||||
+ $_POST = \json_decode($http_body, true) ?? [];
|
|
||||||
}
|
|
||||||
- }
|
|
||||||
+ }
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user