Hi,
The wget converts .htm to .htm.html when adjust_extension is
specified. I found that is not an intended behaviour but a simple bug.
See the patch below:
--- wget-1.13.4/src/http.c.orig 2011-09-07 10:58:01.000000000 +0000
+++ wget-1.13.4/src/http.c 2012-03-19 13:58:29.000000000 +0000
@@ -3517,7 +3517,7 @@
char *last_period_in_local_filename = strrchr (hs->local_file, '.');
char shortext[8];
int len = strlen (ext);
- if (len == 5)
+ if (len == 4)
{
strncpy (shortext, ext, len - 1);
shortext[len - 1] = '\0';