title: How to change the a Header of HttpContent
body: <p>I have this code to change the Header of my content from <code>{text/plain; charset=utf-8}</code> to <code>"{application/json}"</code></p>
  
  <pre><code>using (System.Net.Http.HttpClient client = new System.Net.Http.HttpClient())
  {
      string content = "some json data";
      System.Net.Http.StringContent sc = new System.Net.Http.StringContent(content);
      sc.Headers.Remove("Content-Type"); // "{text/plain; charset=utf-8}"
      sc.Headers.Add("Content-Type", "application/json");
      System.Net.Http.HttpResponseMessage response = client.PostAsync("http://foo.bar", sc).Result;
  }
  </code></pre>
  
  <p>Is there a way to modify it directly instead of removin and adding it?</p>