ensure headers are present on the response object