diff options
| author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2022-11-05 13:59:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-05 13:59:45 +0100 |
| commit | edc84e5d669089fa3f047dc52740679e7cb58fc1 (patch) | |
| tree | 09626f01278b2f29350fe06d3122d5b1be4e06a8 /plugins | |
| parent | 2d9c6276d0a380f831bf94734359f071d0c7e958 (diff) | |
| download | monitoring-plugins-edc84e5d669089fa3f047dc52740679e7cb58fc1.tar.gz | |
Remove superflous CRLF in HTTP-Requests in check_http (#1798)
* Remove superflous CRLF in HTTP-Requests in check_http
Diffstat (limited to 'plugins')
| -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 | } |
