Loading lib/http.c +3 −1 Original line number Diff line number Diff line Loading @@ -1299,9 +1299,11 @@ CURLcode Curl_http_done(struct connectdata *conn, conn->bytecount = http->readbytecount + http->writebytecount; Curl_formclean(http->sendit); /* Now free that whole lot */ if(http->form.fp) if(http->form.fp) { /* a file being uploaded was left opened, close it! */ fclose(http->form.fp); http->form.fp = NULL; } } else if(HTTPREQ_PUT == data->set.httpreq) conn->bytecount = http->readbytecount + http->writebytecount; Loading Loading
lib/http.c +3 −1 Original line number Diff line number Diff line Loading @@ -1299,9 +1299,11 @@ CURLcode Curl_http_done(struct connectdata *conn, conn->bytecount = http->readbytecount + http->writebytecount; Curl_formclean(http->sendit); /* Now free that whole lot */ if(http->form.fp) if(http->form.fp) { /* a file being uploaded was left opened, close it! */ fclose(http->form.fp); http->form.fp = NULL; } } else if(HTTPREQ_PUT == data->set.httpreq) conn->bytecount = http->readbytecount + http->writebytecount; Loading