Browse Source

Merge pull request #636 from jarodtomsk/master

Add support for PATCH HTTP method
walkor 4 năm trước cách đây
mục cha
commit
6bda5038eb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
         }