walkor 8 years ago
parent
commit
aba2614e12
1 changed files with 1 additions and 1 deletions
  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();