handler: Fix typo preventing video/ogg from being inlined (#758)

fixed typo to allow video/ogg content-disposition inline.
fixed comment typos.
This commit is contained in:
Walter Pesce 2022-07-01 17:29:20 -04:00 committed by GitHub
parent 31469fcfed
commit 884cf6ecc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -782,10 +782,10 @@ func (handler *UnroutedHandler) GetFile(w http.ResponseWriter, r *http.Request)
// mimeInlineBrowserWhitelist is a map containing MIME types which should be // mimeInlineBrowserWhitelist is a map containing MIME types which should be
// allowed to be rendered by browser inline, instead of being forced to be // allowed to be rendered by browser inline, instead of being forced to be
// downloadd. For example, HTML or SVG files are not allowed, since they may // downloaded. For example, HTML or SVG files are not allowed, since they may
// contain malicious JavaScript. In a similiar fashion PDF is not on this list // contain malicious JavaScript. In a similiar fashion PDF is not on this list
// as their parsers commonly contain vulnerabilities which can be exploited. // as their parsers commonly contain vulnerabilities which can be exploited.
// The values of this map does not convei any meaning and are therefore just // The values of this map does not convey any meaning and are therefore just
// empty structs. // empty structs.
var mimeInlineBrowserWhitelist = map[string]struct{}{ var mimeInlineBrowserWhitelist = map[string]struct{}{
"text/plain": struct{}{}, "text/plain": struct{}{},