Updated client to use headers from http module