fix rest client headers.