Fix stale info in $client when subsequent requests are made

The response headers are left in the old state when a second request is
made with an invalid url