mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08: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_in = data->set.in;
|
||||
|
||||
conn->bits.upload_chunky =
|
||||
((conn->protocol&PROT_HTTP) &&
|
||||
data->set.upload &&
|
||||
(data->set.infilesize == -1) &&
|
||||
(data->set.httpversion != CURL_HTTP_VERSION_1_0))?
|
||||
if ((conn->protocol&PROT_HTTP) &&
|
||||
data->set.upload &&
|
||||
(data->set.infilesize == -1) &&
|
||||
(data->set.httpversion != CURL_HTTP_VERSION_1_0)) {
|
||||
/* HTTP, upload, unknown file size and not HTTP 1.0 */
|
||||
TRUE:
|
||||
/* else, no chunky upload */
|
||||
FALSE;
|
||||
conn->bits.upload_chunky = TRUE;
|
||||
}
|
||||
else {
|
||||
/* else, no chunky upload */
|
||||
conn->bits.upload_chunky = FALSE;
|
||||
}
|
||||
|
||||
#ifndef USE_ARES
|
||||
/*************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user