aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-15 13:47:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-15 13:47:06 +0000
commit29e873b12d9723a7becb6fb2a06f7f346d3e3157 (patch)
treee621203c65fc4f209b207cc99eed464365d933a4
parent95f78080abd4a07f95e1aa06737e1faa854614c7 (diff)
Jonatan Lander fixed the "Disables POST, goes with GET" output to be more
connected with reality! ;-)
-rw-r--r--lib/transfer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 2e0116882..f1f13d3ff 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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".