Exemple #1
0
 public void Location_UseAddMethodWithInvalidValue_InvalidValueRecognized()
 {
     headers.TryAddWithoutValidation("Location", " http://example.com http://other");
     Assert.Null(headers.GetSingleParsedValue(KnownHeaders.Location.Descriptor));
     Assert.Equal(1, headers.GetValues("Location").Count());
     Assert.Equal(" http://example.com http://other", headers.GetValues("Location").First());
 }