walkor 8 роки тому
батько
коміт
aba2614e12
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -65,7 +65,7 @@ class Http
       */
     protected static function getRequestSize($header, $method)
     {
-        if($method=='GET') {
+        if($method === 'GET' || $method === 'OPTIONS' || $method === 'HEAD') {
             return strlen($header) + 4;
         }
         $match = array();