Jonatan Lander fixed the "Disables POST, goes with GET" output to be more
authorDaniel Stenberg <daniel@haxx.se>
Mon, 15 Apr 2002 13:47:06 +0000 (13:47 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Apr 2002 13:47:06 +0000 (13:47 +0000)
connected with reality! ;-)

lib/transfer.c

index 2e0116882ed70818cd580d7cd2ce38d969794717..f1f13d3ff3984906f43d3324c736ad5c87df8eda 100644 (file)
@@ -1291,8 +1291,11 @@ CURLcode Curl_perform(struct SessionHandle *data)
         case 303: /* See Other */
           /* Disable both types of POSTs, since doing a second POST when
            * following isn't what anyone would want! */
-          data->set.httpreq = HTTPREQ_GET; /* enforce GET request */
-          infof(data, "Disables POST, goes with GET\n");
+          if(data->set.httpreq != HTTPREQ_GET) {
+            data->set.httpreq = HTTPREQ_GET; /* enforce GET request */
+            infof(data, "Disables POST, goes with %s\n",
+                  data->set.no_body?"HEAD":"GET");
+          }
           break;
         case 304: /* Not Modified */
           /* 304 means we did a conditional request and it was "Not modified".