mirror of
https://github.com/mirror/wget.git
synced 2025-03-26 01:30:14 +08:00
[svn] If content-type is not given, assume text/html.
This commit is contained in:
parent
73fc84d889
commit
426bf23ae1
@ -1,3 +1,8 @@
|
|||||||
|
2002-04-16 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
|
* http.c (gethttp): If Content-Type is not given, assume
|
||||||
|
text/html.
|
||||||
|
|
||||||
2002-04-15 Hrvoje Niksic <hniksic@arsdigita.com>
|
2002-04-15 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* recur.c (download_child_p): Don't ignore rejection of HTML
|
* recur.c (download_child_p): Don't ignore rejection of HTML
|
||||||
|
@ -1308,10 +1308,12 @@ Accept: %s\r\n\
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type && !strncasecmp (type, TEXTHTML_S, strlen (TEXTHTML_S)))
|
/* If content-type is not given, assume text/html. This is because
|
||||||
|
of the multitude of broken CGI's that "forget" to generate the
|
||||||
|
content-type. */
|
||||||
|
if (!type || 0 == strncasecmp (type, TEXTHTML_S, strlen (TEXTHTML_S)))
|
||||||
*dt |= TEXTHTML;
|
*dt |= TEXTHTML;
|
||||||
else
|
else
|
||||||
/* We don't assume text/html by default. */
|
|
||||||
*dt &= ~TEXTHTML;
|
*dt &= ~TEXTHTML;
|
||||||
|
|
||||||
if (opt.html_extension && (*dt & TEXTHTML))
|
if (opt.html_extension && (*dt & TEXTHTML))
|
||||||
|
Loading…
Reference in New Issue
Block a user