1 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2 | // SPDX-License-Identifier: Apache-2.0
|
3 | const constructContentDisposition = (contentDisposition) => {
|
4 | if (!contentDisposition)
|
5 | return undefined;
|
6 | if (typeof contentDisposition === 'string')
|
7 | return contentDisposition;
|
8 | const { type, filename } = contentDisposition;
|
9 | return filename !== undefined ? `${type}; filename="${filename}"` : type;
|
10 | };
|
11 |
|
12 | export { constructContentDisposition };
|
13 | //# sourceMappingURL=constructContentDisposition.mjs.map
|