Jonatan Lander fixed the "Disables POST, goes with GET" output to be more

connected with reality! ;-)
This commit is contained in:
Daniel Stenberg 2002-04-15 13:47:06 +00:00
parent 95f78080ab
commit 29e873b12d

View File

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