Skip to content
Commit Detail

Commit 2e6785d

Author
Daniel Walsh <walshy@cloudflare.com> 2026-03-26 10:55:27 +0000
Parents
bbf4df7
Tree
ec9b971
Fix cloudflare.ray_id not being set correctly for subrequests

We were previously setting `cloudflare.ray_id` to the _request_ cf-ray header
if present and ONLY if there was a request body.

This is incorrect. We want to set it to the _response_ header and always not
only if there is a body.

This moves the ray setting down to where the response is returned and ensures
it is properly set when expected

Files changed