Handle passed Headers for UserAgent
fix test failure
Make it possible to pass HTTP headers to WebUserAgent, thanks to Renée Bäcker.
Tidied.