[#74260508] Updated HttpClient so that headers passed in are given preference over headers added earlier.