mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Changed the way the content-length is set.
This commit is contained in:
parent
45f490286a
commit
d0306975c5
1 changed files with 1 additions and 3 deletions
|
@ -134,9 +134,7 @@ xs_dict *xs_http_request(const char *method, const char *url,
|
||||||
b_size = xs_size(body);
|
b_size = xs_size(body);
|
||||||
|
|
||||||
/* add the content-length header */
|
/* add the content-length header */
|
||||||
char tmp[32];
|
curl_easy_setopt(curl, CURLOPT_INFILESIZE, b_size);
|
||||||
sprintf(tmp, "content-length: %d", b_size);
|
|
||||||
list = curl_slist_append(list, tmp);
|
|
||||||
|
|
||||||
pd.data = (char *)body;
|
pd.data = (char *)body;
|
||||||
pd.size = b_size;
|
pd.size = b_size;
|
||||||
|
|
Loading…
Reference in a new issue