6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
12 lines
410 B
JavaScript
12 lines
410 B
JavaScript
import { HttpRequest } from "@smithy/core/protocols";
|
|
import { GENERATED_HEADERS } from "./constants";
|
|
export const prepareRequest = (request) => {
|
|
request = HttpRequest.clone(request);
|
|
for (const headerName of Object.keys(request.headers)) {
|
|
if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
|
|
delete request.headers[headerName];
|
|
}
|
|
}
|
|
return request;
|
|
};
|