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
Currently, overriding a header from the target response in the source
response requires doing it in both ondata_response (when receiving the first
chunk of data) and in onend_response (for when the response doesn't contain
any data), after verifying that res.headersSent is false. That's clumsy at
best.
I've proposed a fix in #129 a long time ago, but never got any feedback.
The text was updated successfully, but these errors were encountered:
fpavageau
changed the title
Overriding a header is needlessly hard
Overriding a header from the target response is needlessly hard
Apr 1, 2020
Currently, overriding a header from the target response in the source
response requires doing it in both
ondata_response
(when receiving the firstchunk of data) and in
onend_response
(for when the response doesn't containany data), after verifying that res.headersSent is false. That's clumsy at
best.
I've proposed a fix in #129 a long time ago, but never got any feedback.
The text was updated successfully, but these errors were encountered: