django-vue3-admin-web/node_modules/@aws-sdk/middleware-flexible-checksums/dist-es/getChecksumLocationName.js
2025-10-20 21:21:14 +08:00

3 lines
202 B
JavaScript

import { ChecksumAlgorithm } from "./constants";
export const getChecksumLocationName = (algorithm) => algorithm === ChecksumAlgorithm.MD5 ? "content-md5" : `x-amz-checksum-${algorithm.toLowerCase()}`;