? lib/build4
? lib/build6
? lib/buildares
Index: lib/http.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/http.c,v
retrieving revision 1.241
diff -u -r1.241 http.c
--- lib/http.c	16 Aug 2004 13:25:30 -0000	1.241
+++ lib/http.c	23 Aug 2004 12:19:54 -0000
@@ -1765,10 +1765,12 @@
           return result;
       }
 
-      if(!checkheaders(data, "Expect:")) {
-        /* if not disabled explicitly we add a Expect: 100-continue
-           to the headers which actually speeds up post operations (as
-           there is one packet coming back from the web server) */
+      if((data->set.httpversion != CURL_HTTP_VERSION_1_0) &&
+         !checkheaders(data, "Expect:")) {
+        /* if not doing HTTP 1.0 or disabled explicitly, we add a Expect:
+           100-continue to the headers which actually speeds up post
+           operations (as there is one packet coming back from the web
+           server) */
         result = add_bufferf(req_buffer,
                              "Expect: 100-continue\r\n");
         if(result)
