Преглед на файлове

plugins/check_http.c - fix regression introduced in commit 388ea928 (Host header)

Laurent Licour преди 11 години
родител
ревизия
8ab801b8d9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -1008,7 +1008,7 @@ check_http (void)
   /* check if Host header is explicitly set in options */
   if (http_opt_headers_count) {
     for (i = 0; i < http_opt_headers_count ; i++) {
-      if (strcmp(http_opt_headers[i], "Host: ")) {
+      if (strncmp(http_opt_headers[i], "Host:", 5) == 0) {
         force_host_header = http_opt_headers[i];
       }
     }