瀏覽代碼

Fix loopGet

xcbosa-itx 2 年之前
父節點
當前提交
8c31734d29
共有 1 個文件被更改,包括 10 次插入9 次删除
  1. 10 9
      httpserver/ClientConnection.cpp

+ 10 - 9
httpserver/ClientConnection.cpp

@@ -88,16 +88,17 @@ namespace xc {
                         }
                     }
                     if (::strlen(lineBuff) == 0) {
-                        isHeader = false;
-                        lastLineIsEmpty = true;
-                        if (lastLineEmptyAndZero) {
+                        // TODO: Fix Linux POST Method
+//                        isHeader = false;
+//                        lastLineIsEmpty = true;
+//                        if (lastLineEmptyAndZero) {
+//                            break;
+//                        } else {
+//                            lastLineEmptyAndZero = false;
+//                        }
+//                        if (method == "GET") {
                             break;
-                        } else {
-                            lastLineEmptyAndZero = false;
-                        }
-                        if (method == "GET") {
-                            break;
-                        }
+//                        }
                         continue;
                     }
                     if (lineBuff[0] == '0') {