Reducing the likelihood of validity check clashing with filename.
This commit is contained in:
parent
16f6cad1ea
commit
a1cbc931e2
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ class RestIntegration implements IntegrationBase {
|
||||||
// the API does not follow the requirements of https://www.ietf.org/rfc/rfc2183.txt
|
// the API does not follow the requirements of https://www.ietf.org/rfc/rfc2183.txt
|
||||||
// all content-disposition headers should be format disposition-type; parameters
|
// all content-disposition headers should be format disposition-type; parameters
|
||||||
// but some APIs do not provide a type, causing the parse below to fail - add one to fix this
|
// but some APIs do not provide a type, causing the parse below to fail - add one to fix this
|
||||||
if (!contentDisposition.includes(";")) {
|
if (!contentDisposition.includes("; ")) {
|
||||||
contentDisposition = `attachment; ${contentDisposition}`
|
contentDisposition = `attachment; ${contentDisposition}`
|
||||||
}
|
}
|
||||||
filename =
|
filename =
|
||||||
|
|
Loading…
Reference in a new issue