mirror of https://github.com/fafhrd91/actix-web
fix xhtml pages' `content-disposition`
This commit is contained in:
parent
ad7e67f940
commit
9e94de0d72
|
@ -133,6 +133,7 @@ impl NamedFile {
|
|||
mime::APPLICATION => match ct.subtype() {
|
||||
mime::JAVASCRIPT | mime::JSON => DispositionType::Inline,
|
||||
name if name == "wasm" => DispositionType::Inline,
|
||||
name if name == "xhtml" => DispositionType::Inline,
|
||||
_ => DispositionType::Attachment,
|
||||
},
|
||||
_ => DispositionType::Attachment,
|
||||
|
|
Loading…
Reference in New Issue