summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-06-02 13:21:06 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-06-02 13:21:06 +0200
commitd78dda5a01770c38fbe6900cb4d40689bef66872 (patch)
treea01fed9706cf80667d224711582e75b4cdf30152
parentba7a42fffc5f19a72e812dfc781113a0b202d3b8 (diff)
downloadmonitoring-plugins-d78dda5.tar.gz
..I should really not test in test code :-)
-rw-r--r--plugins/check_curl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 4e65fea7..61bfd786 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -725,7 +725,6 @@ GOT_FIRST_CERT:
725 die (STATE_CRITICAL, _("HTTP CRITICAL - No header received from host\n")); 725 die (STATE_CRITICAL, _("HTTP CRITICAL - No header received from host\n"));
726 726
727 /* get status line of answer, check sanity of HTTP code */ 727 /* get status line of answer, check sanity of HTTP code */
728 strcpy( header_buf.buf, "HTTP/1.1 200\r\nServer: unkown\r\n\r\n" );
729 if (curlhelp_parse_statusline (header_buf.buf, &status_line) < 0) { 728 if (curlhelp_parse_statusline (header_buf.buf, &status_line) < 0) {
730 snprintf (msg, DEFAULT_BUFFER_SIZE, "Unparsable status line in %.3g seconds response time|%s\n", 729 snprintf (msg, DEFAULT_BUFFER_SIZE, "Unparsable status line in %.3g seconds response time|%s\n",
731 total_time, perfstring); 730 total_time, perfstring);