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.
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.