[monitoring-plugins] ..I should really not test in test code :-)

Andreas Baumann git at monitoring-plugins.org
Sat Jun 2 13:30:16 CEST 2018


 Module: monitoring-plugins
 Branch: feature_check_curl
 Commit: d78dda5a01770c38fbe6900cb4d40689bef66872
 Author: Andreas Baumann <mail at andreasbaumann.cc>
   Date: Sat Jun  2 13:21:06 2018 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d78dda5

..I should really not test in test code :-)

---

 plugins/check_curl.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 4e65fea..61bfd78 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -725,7 +725,6 @@ GOT_FIRST_CERT:
     die (STATE_CRITICAL, _("HTTP CRITICAL - No header received from host\n"));
 
   /* get status line of answer, check sanity of HTTP code */
-  strcpy( header_buf.buf, "HTTP/1.1 200\r\nServer: unkown\r\n\r\n" );
   if (curlhelp_parse_statusline (header_buf.buf, &status_line) < 0) {
     snprintf (msg, DEFAULT_BUFFER_SIZE, "Unparsable status line in %.3g seconds response time|%s\n",
       total_time, perfstring);



More information about the Commits mailing list