[Bug Squash] Redirect With a Consumed Stream
Stripe interview questions · Hard · Bug Squash round · reported 5× · 4 tests
A genuine Stripe debugging-round bug ported to TypeScript: when following a 307/308 redirect, the request body stream is sent again without rewinding its cursor, so the second request goes out empty.
The full question, tests and reference solution are available with a plan that includes Stripe.
Run your code with Ctrl+Enter to see results.