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/