fix: use correct spelling of attachment with Content-Disposition header (#29673)

Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
trop[bot]
2021-06-14 20:58:49 +09:00
committed by GitHub
parent 7665ba0838
commit 066e356ada
2 changed files with 4 additions and 4 deletions

View File

@@ -129,7 +129,7 @@ v8::Local<v8::Value> HttpResponseHeadersToV8(
!value.empty()) {
net::HttpContentDisposition header(value, std::string());
std::string decodedFilename =
header.is_attachment() ? " attachement" : " inline";
header.is_attachment() ? " attachment" : " inline";
decodedFilename += "; filename=" + header.filename();
value = decodedFilename;
}