KamoCRM

The learner media route's HEAD answers instead of hanging

Fixkamo-internal
Shipped
September 23, 2026 at 10:03 AM UTC
Author
Kamo
Commit
eff75c2

useAttachmentSource probes with a HEAD after a media element fails, to tell a file that is gone from a session that lapsed. The route awaited response.body.cancel() on the one-byte upstream answer, and in the deployed pod that promise never settled: no response headers after 25 s, so every probe timed out and a failed player could not say which it was. The body now goes to NextResponse, which drops it for a HEAD — the shape the imaging proxy route already uses.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing