diff options
author | Rodrigo <rodarima@gmail.com> | 2019-07-29 01:08:01 +0200 |
---|---|---|
committer | Rodrigo <rodarima@gmail.com> | 2019-07-29 01:08:01 +0200 |
commit | b2d0c1f22a71dd540497b7eb38fbb2dea95b6c05 (patch) | |
tree | c9861a9bf888706924df81f4bbf10a413a58f900 /src/misc.c | |
parent | c9b817f5bb8ef2060aa36ebb5b089cf249c5170b (diff) |
Recognize Doxygen pages as html
Doxygen introduces a extra header line with a comment
which is now captured.
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |