replaces request_headers with headers