[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [bug #46611] log errors with --trust-server-names
From: |
Tim Ruehsen |
Subject: |
[Bug-wget] [bug #46611] log errors with --trust-server-names |
Date: |
Wed, 23 Mar 2016 15:53:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #10, bug #46611 (project wget):
The stat() is done with the original filename (.exe) in ensure_extension(). If
it exists, '.html' is appended. That is also what your strace output shows.
ensure_extension() is only called when Wget assumes that the original is a
HTML file (wrong default assumption in this case).
>From that point on (http.c, ~L3578) the extension is part of the file name.
If the server answers with 200 OK instead of with 304, Wget would continue
with the .html appended instead of stopping.
IMO, this is not only a display bug.
We'll (c|sh)ould write a few test cases with all those combinations of
redirections, 200, 304, If-Modified-Since that plays a role here.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46611>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/