mirror of
https://github.com/curl/curl.git
synced 2025-09-29 23:46:47 +03:00
David McCreedy's "http.c fix to Curl_proxyCONNECT for non-ASCII platforms" patch
This commit is contained in:
parent
5a91746b80
commit
0569c9c1be
|
@ -11,8 +11,6 @@ To be addressed in 7.19.5 (planned release: May 2009)
|
||||||
|
|
||||||
229 - [PATCH] to correct spelling in ABI
|
229 - [PATCH] to correct spelling in ABI
|
||||||
|
|
||||||
230 - [PATCH] http.c fix to Curl_proxyCONNECT for non-ASCII platforms.
|
|
||||||
|
|
||||||
231 - [PATCH] TPF-platform specific changes to various files
|
231 - [PATCH] TPF-platform specific changes to various files
|
||||||
- committed with minor changes
|
- committed with minor changes
|
||||||
- awaiting feedback
|
- awaiting feedback
|
||||||
|
|
10
lib/http.c
10
lib/http.c
|
@ -1544,10 +1544,18 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
|
||||||
else
|
else
|
||||||
for(i = 0; i < gotbytes; ptr++, i++) {
|
for(i = 0; i < gotbytes; ptr++, i++) {
|
||||||
perline++; /* amount of bytes in this line so far */
|
perline++; /* amount of bytes in this line so far */
|
||||||
if(*ptr=='\n') {
|
if(*ptr=='\x0a') {
|
||||||
char letter;
|
char letter;
|
||||||
int writetype;
|
int writetype;
|
||||||
|
|
||||||
|
#ifdef CURL_DOES_CONVERSIONS
|
||||||
|
/* convert from the network encoding */
|
||||||
|
result = Curl_convert_from_network(data, line_start, perline);
|
||||||
|
/* Curl_convert_from_network calls failf if unsuccessful */
|
||||||
|
if(result)
|
||||||
|
return result;
|
||||||
|
#endif /* CURL_DOES_CONVERSIONS */
|
||||||
|
|
||||||
/* output debug if that is requested */
|
/* output debug if that is requested */
|
||||||
if(data->set.verbose)
|
if(data->set.verbose)
|
||||||
Curl_debug(data, CURLINFO_HEADER_IN,
|
Curl_debug(data, CURLINFO_HEADER_IN,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user