fix: response headers can be discarded in some cases