title: Setting Header in ASP.NET MVC 4 Controller
body: <p>I am trying to insert an header in my controller according with the parameter <code>sub</code>, but with no success. I have tried these two lines, here's the code:</p>
  
  <pre><code>public ActionResult Index(string sub)
  {
      if (!string.IsNullOrEmpty(sub))
      {
          HttpContext.Response.Headers.Add("sub", sub);
          Response.AddHeader("sub", sub);
      }
  
      return View();
  }
  </code></pre>