Browse Source

Add support for PATCH HTTP method

Aleksandr 4 years ago
parent
commit
7216357742
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -125,7 +125,7 @@ class Http
                 }
             }
             return $head_len;
-        } else if ($method !== 'POST' && $method !== 'PUT') {
+        } else if ($method !== 'POST' && $method !== 'PUT' && $method !== 'PATCH') {
             $connection->close("HTTP/1.1 400 Bad Request\r\n\r\n", true);
             return 0;
         }