Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
409 B
Text
11 lines
409 B
Text
import { HttpRequest } from "@smithy/protocol-http";
|
|
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;
|
|
};
|