diff options
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index ff39c591..41d47816 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -1070,9 +1070,8 @@ check_http (void) | |||
1070 | } | 1070 | } |
1071 | 1071 | ||
1072 | xasprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data)); | 1072 | xasprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data)); |
1073 | xasprintf (&buf, "%s%s%s", buf, http_post_data, CRLF); | 1073 | xasprintf (&buf, "%s%s", buf, http_post_data); |
1074 | } | 1074 | } else { |
1075 | else { | ||
1076 | /* or just a newline so the server knows we're done with the request */ | 1075 | /* or just a newline so the server knows we're done with the request */ |
1077 | xasprintf (&buf, "%s%s", buf, CRLF); | 1076 | xasprintf (&buf, "%s%s", buf, CRLF); |
1078 | } | 1077 | } |