소스 검색

Merge pull request #456 from slsca/patch-1

fix error message when -e <response> fails
Sebastian Wolf 6 년 전
부모
커밋
dcff599394
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);