public async Task Keeps_method_on_a_307()
{
using (var client = new HttpClient(_handler)
{
BaseAddress = new Uri("http://localhost")
})
{
var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "/redirect-307-absolute"));
response.StatusCode.ShouldBe(HttpStatusCode.OK);
response.RequestMessage.RequestUri.AbsoluteUri.ShouldBe("http://localhost/redirect");
response.RequestMessage.Method.ShouldBe(HttpMethod.Head);
}
}