You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Trusted HEAD responses advertise Content-Length 0 for nonempty GET representations #139
f.mjs: export default () => new Response('hello').
Run identical GET and HEAD through createRuntime and prepareResponse.
Relevant output
GET produces 5 bytes. HEAD discards the body in src/trusted-functions.ts:145, returns no contentLength, and src/http-response.ts then advertises Content-Length: 0. Expected: HEAD carries the GET representation length (5), or omits Content-Length if unavailable without consuming the stream. It must not invent zero. Preserve no-body delivery, and explicitly cancel/dispose any unused stream. Add wire-level coverage for dynamic and middleware-transformed responses.
Activity
Fix sandboxed HEAD responses reporting Content-Length: 0 (#144) (#150)