diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 620e157..e140be0 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -1103,7 +1103,7 @@ redir (char *pos, char *status_line) | |||
1103 | 1103 | ||
1104 | url = malloc (strcspn (pos, "\r\n")); | 1104 | url = malloc (strcspn (pos, "\r\n")); |
1105 | if (url == NULL) | 1105 | if (url == NULL) |
1106 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate url\n")); | 1106 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate URL\n")); |
1107 | 1107 | ||
1108 | while (pos) { | 1108 | while (pos) { |
1109 | sscanf (pos, "%1[Ll]%*1[Oo]%*1[Cc]%*1[Aa]%*1[Tt]%*1[Ii]%*1[Oo]%*1[Nn]:%n", xx, &i); | 1109 | sscanf (pos, "%1[Ll]%*1[Oo]%*1[Cc]%*1[Aa]%*1[Tt]%*1[Ii]%*1[Oo]%*1[Nn]:%n", xx, &i); |
@@ -1134,7 +1134,7 @@ redir (char *pos, char *status_line) | |||
1134 | 1134 | ||
1135 | url = realloc (url, strcspn (pos, "\r\n") + 1); | 1135 | url = realloc (url, strcspn (pos, "\r\n") + 1); |
1136 | if (url == NULL) | 1136 | if (url == NULL) |
1137 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - could not allocate url\n")); | 1137 | die (STATE_UNKNOWN, _("HTTP UNKNOWN - Could not allocate URL\n")); |
1138 | 1138 | ||
1139 | /* URI_HTTP, URI_HOST, URI_PORT, URI_PATH */ | 1139 | /* URI_HTTP, URI_HOST, URI_PORT, URI_PATH */ |
1140 | if (sscanf (pos, HD1, type, addr, &i, url) == 4) { | 1140 | if (sscanf (pos, HD1, type, addr, &i, url) == 4) { |
@@ -1301,7 +1301,7 @@ print_help (void) | |||
1301 | printf (" %s\n", _("Connect via SSL. Port defaults to 443")); | 1301 | printf (" %s\n", _("Connect via SSL. Port defaults to 443")); |
1302 | printf (" %s\n", "-C, --certificate=INTEGER"); | 1302 | printf (" %s\n", "-C, --certificate=INTEGER"); |
1303 | printf (" %s\n", _("Minimum number of days a certificate has to be valid. Port defaults to 443")); | 1303 | printf (" %s\n", _("Minimum number of days a certificate has to be valid. Port defaults to 443")); |
1304 | printf (" %s\n", _("(when this option is used the url is not checked.)\n")); | 1304 | printf (" %s\n", _("(when this option is used the URL is not checked.)\n")); |
1305 | #endif | 1305 | #endif |
1306 | 1306 | ||
1307 | printf (" %s\n", "-e, --expect=STRING"); | 1307 | printf (" %s\n", "-e, --expect=STRING"); |