瀏覽代碼

Add support for PATCH HTTP method

Aleksandr 4 年之前
父節點
當前提交
7216357742
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -125,7 +125,7 @@ class Http
                 }
                 }
             }
             }
             return $head_len;
             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);
             $connection->close("HTTP/1.1 400 Bad Request\r\n\r\n", true);
             return 0;
             return 0;
         }
         }