Fix setting client details HTTP header.

Requires a :request parameter passed in to the client constructor.