fix: use correct spelling of attachment with Content-Disposition header (#29621)
This commit is contained in:
parent
f6d673c32a
commit
fed5ad5303
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue