xcbosa-itx il y a 2 ans
Parent
commit
8c31734d29
1 fichiers modifiés avec 10 ajouts et 9 suppressions
  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') {