sendf: store the header type in an usigned char to avoid icc warnings

Closes #9179
This commit is contained in:
Daniel Stenberg 2022-07-20 12:48:49 +02:00
parent 4c57fdcf87
commit 6531c0e85a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -589,12 +589,12 @@ static CURLcode chop_write(struct Curl_easy *data,
/* HTTP header, but not status-line */
if((conn->handler->protocol & PROTO_FAMILY_HTTP) &&
(type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS) ) {
CURLcode result =
Curl_headers_push(data, optr,
type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
(type & CLIENTWRITE_1XX ? CURLH_1XX :
(type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
CURLH_HEADER)));
unsigned char htype = (unsigned char)
(type & CLIENTWRITE_CONNECT ? CURLH_CONNECT :
(type & CLIENTWRITE_1XX ? CURLH_1XX :
(type & CLIENTWRITE_TRAILER ? CURLH_TRAILER :
CURLH_HEADER)));
CURLcode result = Curl_headers_push(data, optr, htype);
if(result)
return result;
}