Fixing REST test failure (?).
This commit is contained in:
parent
2ed510dc90
commit
e90aa58242
|
@ -655,6 +655,7 @@ describe("REST Integration", () => {
|
||||||
}),
|
}),
|
||||||
get: (header: any) => {
|
get: (header: any) => {
|
||||||
if (header === "content-type") return contentType
|
if (header === "content-type") return contentType
|
||||||
|
if (header === "content-length") return responseData.byteLength
|
||||||
if (header === "content-disposition")
|
if (header === "content-disposition")
|
||||||
return `attachment; filename="${filename}"`
|
return `attachment; filename="${filename}"`
|
||||||
},
|
},
|
||||||
|
@ -700,6 +701,7 @@ describe("REST Integration", () => {
|
||||||
}),
|
}),
|
||||||
get: (header: any) => {
|
get: (header: any) => {
|
||||||
if (header === "content-type") return contentType
|
if (header === "content-type") return contentType
|
||||||
|
if (header === "content-length") return responseData.byteLength
|
||||||
if (header === "content-disposition")
|
if (header === "content-disposition")
|
||||||
// eslint-disable-next-line no-useless-escape
|
// eslint-disable-next-line no-useless-escape
|
||||||
return `attachment; filename="£ and ? rates.pdf"; filename*=UTF-8'\'%C2%A3%20and%20%E2%82%AC%20rates.pdf`
|
return `attachment; filename="£ and ? rates.pdf"; filename*=UTF-8'\'%C2%A3%20and%20%E2%82%AC%20rates.pdf`
|
||||||
|
|
Loading…
Reference in New Issue