summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 5ec212a..c48e97c 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -154,8 +154,8 @@ main (int argc, char **argv)
154 } 154 }
155 155
156 if (display_html == TRUE) 156 if (display_html == TRUE)
157 printf ("<A HREF=\"%s%s:%d%s\" target=\"_blank\">", 157 printf ("<A HREF=\"%s://%s:%d%s\" target=\"_blank\">",
158 use_ssl ? "https://" : "http://", host_name, 158 use_ssl ? "https" : "http", host_name,
159 server_port, server_url); 159 server_port, server_url);
160 160
161 /* initialize alarm signal handling, set socket timeout, start timer */ 161 /* initialize alarm signal handling, set socket timeout, start timer */
@@ -505,8 +505,7 @@ base64 (const char *bin, size_t len)
505static int 505static int
506document_headers_done (char *full_page) 506document_headers_done (char *full_page)
507{ 507{
508 const char *body, *s; 508 const char *body;
509 const char *end;
510 509
511 for (body = full_page; *body; body++) { 510 for (body = full_page; *body; body++) {
512 if (!strncmp (body, "\n\n", 2) || !strncmp (body, "\n\r\n", 3)) 511 if (!strncmp (body, "\n\n", 2) || !strncmp (body, "\n\r\n", 3))
@@ -842,7 +841,9 @@ check_http (void)
842 page = full_page; 841 page = full_page;
843 842
844 if (verbose) 843 if (verbose)
845 printf ("%s://%s:%d%s is %d characters\n", server_type, server_address, server_port, server_url, pagesize); 844 printf ("%s://%s:%d%s is %d characters\n",
845 use_ssl ? "https" : "http", server_address,
846 server_port, server_url, pagesize);
846 847
847 /* find status line and null-terminate it */ 848 /* find status line and null-terminate it */
848 status_line = page; 849 status_line = page;