Loading lib/transfer.c +21 −14 Original line number Diff line number Diff line Loading @@ -567,10 +567,16 @@ CURLcode Curl_readwrite(struct connectdata *conn, *start && isspace((int)*start); start++); /* count all non-space letters following */ for(end=start, len=0; *end && !isspace((int)*end); end++, len++); end = strchr(start, '\r'); if(!end) end = strchr(start, '\n'); if(end) { /* skip all trailing space letters */ for(; isspace(*end) && (end > start); end--); /* get length of the type */ len = end-start+1; /* allocate memory of a cloned copy */ if(data->info.contenttype) Loading @@ -584,6 +590,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, memcpy(data->info.contenttype, start, len); data->info.contenttype[len] = 0; /* zero terminate */ } } else if((k->httpversion == 10) && conn->bits.httpproxy && Curl_compareheader(k->p, Loading Loading
lib/transfer.c +21 −14 Original line number Diff line number Diff line Loading @@ -567,10 +567,16 @@ CURLcode Curl_readwrite(struct connectdata *conn, *start && isspace((int)*start); start++); /* count all non-space letters following */ for(end=start, len=0; *end && !isspace((int)*end); end++, len++); end = strchr(start, '\r'); if(!end) end = strchr(start, '\n'); if(end) { /* skip all trailing space letters */ for(; isspace(*end) && (end > start); end--); /* get length of the type */ len = end-start+1; /* allocate memory of a cloned copy */ if(data->info.contenttype) Loading @@ -584,6 +590,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, memcpy(data->info.contenttype, start, len); data->info.contenttype[len] = 0; /* zero terminate */ } } else if((k->httpversion == 10) && conn->bits.httpproxy && Curl_compareheader(k->p, Loading