aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRodrigo <rodarima@gmail.com>2019-07-29 01:08:01 +0200
committerRodrigo <rodarima@gmail.com>2019-07-29 01:08:01 +0200
commitb2d0c1f22a71dd540497b7eb38fbb2dea95b6c05 (patch)
treec9861a9bf888706924df81f4bbf10a413a58f900 /src
parentc9b817f5bb8ef2060aa36ebb5b089cf249c5170b (diff)
Recognize Doxygen pages as html
Doxygen introduces a extra header line with a comment which is now captured.
Diffstat (limited to 'src')
-rw-r--r--src/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc.c b/src/misc.c
index 00589999..8d662a33 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -146,8 +146,8 @@ int a_Misc_get_content_type_from_data(void *Data, size_t Size, const char **PT)
(Size - i >= 5 && !dStrnAsciiCasecmp(p+i, "<head", 5)) ||
(Size - i >= 6 && !dStrnAsciiCasecmp(p+i, "<title", 6)) ||
(Size - i >= 14 && !dStrnAsciiCasecmp(p+i, "<!doctype html", 14)) ||
- /* this line is workaround for FTP through the Squid proxy */
- (Size - i >= 17 && !dStrnAsciiCasecmp(p+i, "<!-- HTML listing", 17))) {
+ /* this line is workaround for FTP through the Squid proxy and Doxygen */
+ (Size - i >= 9 && !dStrnAsciiCasecmp(p+i, "<!-- HTML", 9))) {
Type = DT_TEXT_HTML;
st = 0;