projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- better fix
[m6w6/ext-http]
/
http_request_api.c
diff --git
a/http_request_api.c
b/http_request_api.c
index 797e9a2a54744e6881ea7fc430baf080513ac3db..865790908423cf28792996286602b15b75f21349 100644
(file)
--- a/
http_request_api.c
+++ b/
http_request_api.c
@@
-961,15
+961,8
@@
static int http_curl_raw_callback(CURL *ch, curl_infotype type, char *data, size
}
break;
case CURLINFO_DATA_OUT:
}
break;
case CURLINFO_DATA_OUT:
- if (request->conv.last_type == CURLINFO_HEADER_OUT) {
- phpstr_appends(&request->conv.request, HTTP_CRLF);
- }
- phpstr_append(&request->conv.request, data, length);
- break;
case CURLINFO_HEADER_OUT:
case CURLINFO_HEADER_OUT:
- if (!EMPTY_HEADER(data, length)) {
- phpstr_append(&request->conv.request, data, length);
- }
+ phpstr_append(&request->conv.request, data, length);
break;
default:
#if 0
break;
default:
#if 0
@@
-993,7
+986,7
@@
static int http_curl_raw_callback(CURL *ch, curl_infotype type, char *data, size
break;
}
break;
}
-#if
0
+#if
1
fprintf(stderr, "DEBUG: %3d (%5zu) %.*s%s", type, length, length, data, data[length-1]=='\n'?"":"\n");
#endif
fprintf(stderr, "DEBUG: %3d (%5zu) %.*s%s", type, length, length, data, data[length-1]=='\n'?"":"\n");
#endif