mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 22:56:58 -04:00
Remove superflous CRLF in HTTP-Requests in check_http (#1798)
* Remove superflous CRLF in HTTP-Requests in check_http
This commit is contained in:
parent
2d9c6276d0
commit
edc84e5d66
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue