Remove superflous CRLF in HTTP-Requests in check_http (#1798)

* Remove superflous CRLF in HTTP-Requests in check_http
This commit is contained in:
Lorenz 2022-11-05 13:59:45 +01:00 committed by GitHub
parent 2d9c6276d0
commit edc84e5d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}