Preserve previous status in Curl_http_done().

This commit is contained in:
Gisle Vanem 2005-02-06 12:43:40 +00:00
Родитель 67ff8e3ea3
Коммит 7b23eff9cf
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -1274,7 +1274,6 @@ CURLcode Curl_http_done(struct connectdata *conn,
{ {
struct SessionHandle *data; struct SessionHandle *data;
struct HTTP *http; struct HTTP *http;
(void)status; /* no use for us */
data=conn->data; data=conn->data;
http=conn->proto.http; http=conn->proto.http;
@ -1291,7 +1290,7 @@ CURLcode Curl_http_done(struct connectdata *conn,
free(buff->buffer); free(buff->buffer);
free(buff); free(buff);
http->send_buffer = NULL; /* cleaer the pointer */ http->send_buffer = NULL; /* clear the pointer */
} }
if(HTTPREQ_POST_FORM == data->set.httpreq) { if(HTTPREQ_POST_FORM == data->set.httpreq) {
@ -1307,6 +1306,9 @@ CURLcode Curl_http_done(struct connectdata *conn,
else if(HTTPREQ_PUT == data->set.httpreq) else if(HTTPREQ_PUT == data->set.httpreq)
conn->bytecount = http->readbytecount + http->writebytecount; conn->bytecount = http->readbytecount + http->writebytecount;
if (status != CURLE_OK)
return (status);
if(!conn->bits.retry && if(!conn->bits.retry &&
((http->readbytecount + ((http->readbytecount +
conn->headerbytecount - conn->headerbytecount -