Fix headers for request() method