https://bugzilla.wikimedia.org/show_bug.cgi?id=51881
--- Comment #1 from Tommi Mäkitalo <[email protected]> --- It works as expected. The mime type is explicitly set to std::numeric_limits<uint16_t>::max() in redirects. See include/zim/dirent.h line 104. Users should not call getMimeType or getPage on redirects but use isRedirect first to check weather the article is actually a redirect. The methods getMimeType and getPage do not actually make any sense on redirects. A improvement would be to change the error message to something more useful but calling getMimeType or getPage on redirects should throw an exception. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
