瀏覽代碼

Merge pull request #353 from Arul-/patch-1

Fix for DELETE requests that keep the connection hanging
walkor 7 年之前
父節點
當前提交
8a4108a78b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Protocols/Http.php

+ 1 - 1
Protocols/Http.php

@@ -73,7 +73,7 @@ class Http
             $content_length = isset($match[1]) ? $match[1] : 0;
             return $content_length + strlen($header) + 4;
         }
-        return 0;
+        return $method === 'DELETE' ? strlen($header) + 4 : 0;
     }
 
     /**