Explorar o código

Merge pull request #456 from slsca/patch-1

fix error message when -e <response> fails
Sebastian Wolf %!s(int64=6) %!d(string=hai) anos
pai
achega
dcff599394
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -1301,7 +1301,7 @@ check_http (void)
     }
 
     /* Bypass normal status line check if server_expect was set by user and not default */
-    if ( server_expect_yn  )  {
+    if ( server_expect_yn && !bad_response )  {
 
         xasprintf (&msg,
                    _("Status line output matched \"%s\" - "), server_expect);