瀏覽代碼

fix use '-N' cause CRITICAL - Socket

2005wind 7 年之前
父節點
當前提交
c99c128ed3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -1225,7 +1225,7 @@ check_http (void)
 
     for (;;) {
 
-        if ((page == NULL) || !strncmp(page, "\r\n\r\n", 4) || !strncmp(page, "\n\n", 2))
+        if ((page == NULL) || !strncmp(page, "\r\n\r\n", 4) || !strncmp(page, "\n\n", 2) || *page == '\0' )
             break;
 
         while (*page == '\r' || *page == '\n') {