Browse Source

Merge pull request #636 from jarodtomsk/master

Add support for PATCH HTTP method
walkor 4 years ago
parent
commit
6bda5038eb
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;
             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;
         }
         }