Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix headers

Steven Tey2c31ed014684
diff --git a/apps/web/app/api/callback/stripe/route.ts b/apps/web/app/api/callback/stripe/route.ts
index 4be6667c66..9bf7a4c386 100644
--- a/apps/web/app/api/callback/stripe/route.ts
+++ b/apps/web/app/api/callback/stripe/route.ts
@@ -17,7 +17,7 @@ const relevantEvents = new Set([
// POST /api/callback/stripe – listen to Stripe webhooks
export const POST = async (req: Request) => {
const buf = await req.text();
- const sig = req.headers["stripe-signature"];
+ const sig = req.headers.get("Stripe-Signature") as string;
const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET;
let event: Stripe.Event;
try {