Skip to content

Commit

Permalink
undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven committed Mar 4, 2025
1 parent dd052a7 commit 2657776
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/service-utils/src/cf-worker/usageV2.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Request } from "@cloudflare/workers-types";
import type { CoreAuthInput } from "src/core/types.js";
import type { CoreAuthInput } from "../core/types.js";
import type {
ClientUsageV2Event,
UsageV2Event,
Expand Down Expand Up @@ -34,7 +33,7 @@ export async function sendUsageV2Events<T extends UsageV2Options>(
// Forward headers from the origin request.
// Determine endpoint and auth header based on provided credentials.
let url: string;
const headers = new Headers(Object.fromEntries(authInput.req.headers));
const headers = new Headers(authInput.req.headers);
headers.set("Content-Type", "application/json");
if (serviceKey) {
// If a service key is provided, call the non-public usage endpoint.
Expand Down

0 comments on commit 2657776

Please sign in to comment.