more variable type fixes for the large POST support
This commit is contained in:
Родитель
ef776ab893
Коммит
4ad68ec305
|
@ -1620,11 +1620,11 @@ CURLcode Curl_http(struct connectdata *conn)
|
||||||
if(!conn->bits.upload_chunky)
|
if(!conn->bits.upload_chunky)
|
||||||
/* We're not sending it 'chunked', append it to the request
|
/* We're not sending it 'chunked', append it to the request
|
||||||
already now to reduce the number if send() calls */
|
already now to reduce the number if send() calls */
|
||||||
add_buffer(req_buffer, data->set.postfields, postsize);
|
add_buffer(req_buffer, data->set.postfields, (size_t)postsize);
|
||||||
else {
|
else {
|
||||||
/* Append the POST data chunky-style */
|
/* Append the POST data chunky-style */
|
||||||
add_bufferf(req_buffer, "%x\r\n", postsize);
|
add_bufferf(req_buffer, "%x\r\n", postsize);
|
||||||
add_buffer(req_buffer, data->set.postfields, postsize);
|
add_buffer(req_buffer, data->set.postfields, (size_t)postsize);
|
||||||
add_buffer(req_buffer, "\r\n0\r\n\r\n", 7); /* end of a chunked
|
add_buffer(req_buffer, "\r\n0\r\n\r\n", 7); /* end of a chunked
|
||||||
transfer stream */
|
transfer stream */
|
||||||
}
|
}
|
||||||
|
|
|
@ -205,7 +205,7 @@ struct negotiatedata {
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
struct HTTP {
|
struct HTTP {
|
||||||
struct FormData *sendit;
|
struct FormData *sendit;
|
||||||
size_t postsize;
|
curl_off_t postsize; /* off_t to handle large file sizes */
|
||||||
char *postdata;
|
char *postdata;
|
||||||
|
|
||||||
const char *p_pragma; /* Pragma: string */
|
const char *p_pragma; /* Pragma: string */
|
||||||
|
@ -221,7 +221,7 @@ struct HTTP {
|
||||||
curl_read_callback fread; /* backup storage for fread pointer */
|
curl_read_callback fread; /* backup storage for fread pointer */
|
||||||
void *fread_in; /* backup storage for fread_in pointer */
|
void *fread_in; /* backup storage for fread_in pointer */
|
||||||
char *postdata;
|
char *postdata;
|
||||||
size_t postsize;
|
curl_off_t postsize;
|
||||||
} backup;
|
} backup;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче