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
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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