aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lorenz <12514511+RincewindsHat@users.noreply.github.com> 2022-11-05 13:59:45 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-05 13:59:45 +0100
commitedc84e5d669089fa3f047dc52740679e7cb58fc1 (patch)
tree09626f01278b2f29350fe06d3122d5b1be4e06a8
parent2d9c6276d0a380f831bf94734359f071d0c7e958 (diff)
downloadmonitoring-plugins-edc84e5d669089fa3f047dc52740679e7cb58fc1.tar.gz
Remove superflous CRLF in HTTP-Requests in check_http (#1798)
* Remove superflous CRLF in HTTP-Requests in check_http
-rw-r--r--plugins/check_http.c5
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)
}
xasprintf (&buf, "%sContent-Length: %i\r\n\r\n", buf, (int)strlen (http_post_data));
- xasprintf (&buf, "%s%s%s", buf, http_post_data, CRLF);
- }
- else {
+ xasprintf (&buf, "%s%s", buf, http_post_data);
+ } else {
/* or just a newline so the server knows we're done with the request */
xasprintf (&buf, "%s%s", buf, CRLF);
}