X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fretr.c;fp=src%2Fretr.c;h=9002b0ec01675751eff2cff0ec523db82557088a;hp=d51b7e7f117b2a483e7a857b595af70c7f949808;hb=52dd6da6e0dc972fdeac40033ae42e2623d3938f;hpb=550457bcade62a8f072ce0d50d0d85bcb60d22bb diff --git a/src/retr.c b/src/retr.c index d51b7e7f..9002b0ec 100644 --- a/src/retr.c +++ b/src/retr.c @@ -681,6 +681,7 @@ calc_rate (wgint bytes, double secs, int *units) post_data_suspended = true; \ saved_post_data = opt.body_data; \ saved_post_file_name = opt.body_file; \ + saved_method = opt.method; \ opt.body_data = NULL; \ opt.body_file = NULL; \ opt.method = NULL; \ @@ -691,8 +692,8 @@ calc_rate (wgint bytes, double secs, int *units) { \ opt.body_data = saved_post_data; \ opt.body_file = saved_post_file_name; \ + opt.method = saved_method; \ post_data_suspended = false; \ - opt.method = "POST"; \ } \ } while (0) @@ -722,6 +723,7 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file, bool post_data_suspended = false; char *saved_post_data = NULL; + char *saved_method = NULL; char *saved_post_file_name = NULL; /* If dt is NULL, use local storage. */