mirror of
https://github.com/curl/curl.git
synced 2025-09-20 19:12:40 +03:00
Compiler warning fix
This commit is contained in:
parent
e55d4fd5c1
commit
7d3e719a2c
18
lib/url.c
18
lib/url.c
|
@ -4070,15 +4070,17 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
||||||
conn->fread = data->set.fread;
|
conn->fread = data->set.fread;
|
||||||
conn->fread_in = data->set.in;
|
conn->fread_in = data->set.in;
|
||||||
|
|
||||||
conn->bits.upload_chunky =
|
if ((conn->protocol&PROT_HTTP) &&
|
||||||
((conn->protocol&PROT_HTTP) &&
|
data->set.upload &&
|
||||||
data->set.upload &&
|
(data->set.infilesize == -1) &&
|
||||||
(data->set.infilesize == -1) &&
|
(data->set.httpversion != CURL_HTTP_VERSION_1_0)) {
|
||||||
(data->set.httpversion != CURL_HTTP_VERSION_1_0))?
|
|
||||||
/* HTTP, upload, unknown file size and not HTTP 1.0 */
|
/* HTTP, upload, unknown file size and not HTTP 1.0 */
|
||||||
TRUE:
|
conn->bits.upload_chunky = TRUE;
|
||||||
/* else, no chunky upload */
|
}
|
||||||
FALSE;
|
else {
|
||||||
|
/* else, no chunky upload */
|
||||||
|
conn->bits.upload_chunky = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef USE_ARES
|
#ifndef USE_ARES
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
|
|
Loading…
Reference in New Issue
Block a user