You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ignore certain MIME types in fixCharset is not enough, now only ignore video, image etc, but there are have some mime type should be ignore, for example, doc, pdf, xlsx ... application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,
in func fixCharset ()
...
if strings.Contains(contentType, "image/") ||
strings.Contains(contentType, "video/") ||
strings.Contains(contentType, "audio/") ||
strings.Contains(contentType, "font/") {
// These MIME types should not have textual data.
return nil
}
should be fixed
if !strings.Constins(contentType, "text/") {
return nil
}
The text was updated successfully, but these errors were encountered:
Ignore certain MIME types in fixCharset is not enough, now only ignore video, image etc, but there are have some mime type should be ignore, for example, doc, pdf, xlsx ... application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document,
in func fixCharset ()
...
if strings.Contains(contentType, "image/") ||
strings.Contains(contentType, "video/") ||
strings.Contains(contentType, "audio/") ||
strings.Contains(contentType, "font/") {
// These MIME types should not have textual data.
should be fixed
if !strings.Constins(contentType, "text/") {
return nil
}
The text was updated successfully, but these errors were encountered: