From ded0da79b0744b6834504141f659693404251547 Mon Sep 17 00:00:00 2001 From: xboard Date: Fri, 17 Jan 2025 19:54:02 +0800 Subject: [PATCH] chore: remove unnecessary configuration files --- composer.json | 10 +--------- patches/Http.patch | 23 ----------------------- 2 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 patches/Http.patch diff --git a/composer.json b/composer.json index e6dd07a..67a67b0 100755 --- a/composer.json +++ b/composer.json @@ -45,19 +45,11 @@ "config": { "optimize-autoloader": true, "preferred-install": "dist", - "sort-packages": true, - "allow-plugins": { - "cweagans/composer-patches": true - } + "sort-packages": true }, "extra": { "laravel": { "dont-discover": [] - }, - "patches": { - "joanhey/adapterman": { - "http": "patches/Http.patch" - } } }, "autoload": { diff --git a/patches/Http.patch b/patches/Http.patch deleted file mode 100644 index 87b842e..0000000 --- a/patches/Http.patch +++ /dev/null @@ -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) ?? []; - } -- } -+ } - } \ No newline at end of file