Replies: 1 comment
-
try setting the content length after setting the body |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to sent the Content-Length header of a HEAD method response but it seems like Koa it automatically removing the header when the body is set to
null
. I am sure there is some trick to this that I am just not familiar with but I can't figure out what it is.Note:
ctx.body
is originally being set in a middleware function that runs before this one.Beta Was this translation helpful? Give feedback.
All reactions