X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhttp.c;h=25ad4740f8c35f2419a77d2e2648550162879ce0;hb=54fd8de415cd31e015cf3a391818d3c83fce21c6;hp=3e4d7cc6076c2f96dbb6b84d894994a5546d4067;hpb=6c30653a1aad1dd2125122adfd477480cc9c9ca5;p=wget diff --git a/src/http.c b/src/http.c index 3e4d7cc6..25ad4740 100644 --- a/src/http.c +++ b/src/http.c @@ -1765,8 +1765,6 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, const char *meth = "GET"; if (head_only) meth = "HEAD"; - else if (opt.post_file_name || opt.post_data) - meth = "POST"; else if (opt.method) { char *q; @@ -2150,7 +2148,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, warc_payload_offset = ftello (warc_tmp); /* Write a copy of the data to the WARC record. */ - int warc_tmp_written = fwrite (opt.post_data, 1, body_data_size, warc_tmp); + int warc_tmp_written = fwrite (opt.body_data, 1, body_data_size, warc_tmp); if (warc_tmp_written != body_data_size) write_error = -2; }