(value: string)
| 258 | } |
| 259 | |
| 260 | function encodeHeaderValue(value: string): string { |
| 261 | return encodeURIComponent(value).replace(/[!'()*]/g, (ch) => |
| 262 | `%${ch.charCodeAt(0).toString(16).toUpperCase()}` |
| 263 | ); |
| 264 | } |
| 265 | |
| 266 | function getContentDisposition(filePath: string, asDownload = false): string { |
| 267 | const disposition = asDownload ? "attachment" : "inline"; |
no outgoing calls
no test coverage detected