title: Retaining authorization header in RestSharp during redirects
body: <p>I am using RestSharp to make a GET api call. The api call is authenticated through HTTP Basic authentication by passing the authorization header. </p>
  
  <p>The server redirects the api call with a status code 307. My client code does handle the redirects but the authorization header is not passed to this redirected api call. This is done for valid reasons as mentioned <a href="https://stackoverflow.com/a/28671822/537503">here</a>. Hence I do get an unauthorized error.</p>
  
  <p>How can I configure the RestClient to restore the authorization header?</p>
  
  <pre><code>var client = new RestClient("https://serverurl.com");
  var request = new RestRequest(Method.GET);
  
  request.AddHeader("Authorization", "Basic Z3JvdXAxOlByb2otMzI1");
  request.AddHeader("Content-Type", "application/json");
  request.AddHeader("Tenant-Id", "4892");
  
  IRestResponse response = client.Execute(request);
  Console.WriteLine(response.Content);
  </code></pre>