@medialane/sdk 0.125.1 → 0.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -494,7 +494,6 @@ interface BackendProxyConfig {
494
494
  name: string;
495
495
  header: string;
496
496
  };
497
- forwardHeaders?: readonly string[];
498
497
  }
499
498
  declare function createBackendProxyHandler(config: BackendProxyConfig): (req: Request) => Promise<Response>;
500
499
 
package/dist/index.d.ts CHANGED
@@ -494,7 +494,6 @@ interface BackendProxyConfig {
494
494
  name: string;
495
495
  header: string;
496
496
  };
497
- forwardHeaders?: readonly string[];
498
497
  }
499
498
  declare function createBackendProxyHandler(config: BackendProxyConfig): (req: Request) => Promise<Response>;
500
499
 
package/dist/index.js CHANGED
@@ -1520,10 +1520,6 @@ function createBackendProxyHandler(config) {
1520
1520
  const value = readCookie(req, config.forwardCookie.name);
1521
1521
  if (value) headers2[config.forwardCookie.header] = value;
1522
1522
  }
1523
- for (const name of config.forwardHeaders ?? []) {
1524
- const value = req.headers.get(name);
1525
- if (value) headers2[name] = value;
1526
- }
1527
1523
  try {
1528
1524
  const upstream = await doFetch(endpoint2, {
1529
1525
  method: "POST",