1 Dec 2009 13:04
bagder: curl/lib http.c,1.428,1.429
<cvs <at> giant.haxx.se>
2009-12-01 12:04:57 GMT
2009-12-01 12:04:57 GMT
Update of /cvsroot/curl/curl/lib
In directory giant.haxx.se:/var/tmp/cvs-serv22085/lib
Modified Files:
http.c
Log Message:
- If the Expect: 100-continue header has been set by the application through
curl_easy_setopt with CURLOPT_HTTPHEADER, the library should set
data->state.expect100header accordingly - the current code (in 7.19.7 at
least) doesn't handle this properly. Martin Storsjo provided the fix!
Index: http.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/http.c,v
retrieving revision 1.428
retrieving revision 1.429
diff -u -d -r1.428 -r1.429
--- http.c 18 Nov 2009 10:33:54 -0000 1.428
+++ http.c 1 Dec 2009 12:04:55 -0000 1.429
<at> <at> -1981,17 +1981,24 <at> <at>
send_buffer *req_buffer)
{
CURLcode result = CURLE_OK;
+ const char *ptr;
data->state.expect100header = FALSE; /* default to false unless it is set
to TRUE below */
- if(use_http_1_1(data, conn) && !checkheaders(data, "Expect:")) {
+ if(use_http_1_1(data, conn)) {
/* if not doing HTTP 1.0 or disabled explicitly, we add a Expect:
- 100-continue to the headers which actually speeds up post
(Continue reading)
RSS Feed