Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit 12770e2

Browse files
committed
React to IHeaderDictionary changes.
1 parent f88b206 commit 12770e2

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Diff for: src/Microsoft.AspNet.TestHost/RequestFeature.cs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System;
5-
using System.Collections.Generic;
64
using System.IO;
5+
using Microsoft.AspNet.Http;
76
using Microsoft.AspNet.Http.Features;
8-
using Microsoft.Extensions.Primitives;
7+
using Microsoft.AspNet.Http.Internal;
98

109
namespace Microsoft.AspNet.TestHost
1110
{
@@ -14,7 +13,7 @@ internal class RequestFeature : IHttpRequestFeature
1413
public RequestFeature()
1514
{
1615
Body = Stream.Null;
17-
Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
16+
Headers = new HeaderDictionary();
1817
Method = "GET";
1918
Path = "";
2019
PathBase = "";
@@ -25,7 +24,7 @@ public RequestFeature()
2524

2625
public Stream Body { get; set; }
2726

28-
public IDictionary<string, StringValues> Headers { get; set; }
27+
public IHeaderDictionary Headers { get; set; }
2928

3029
public string Method { get; set; }
3130

Diff for: src/Microsoft.AspNet.TestHost/ResponseFeature.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5-
using System.Collections.Generic;
65
using System.IO;
76
using System.Threading.Tasks;
7+
using Microsoft.AspNet.Http;
88
using Microsoft.AspNet.Http.Features;
9-
using Microsoft.Extensions.Primitives;
9+
using Microsoft.AspNet.Http.Internal;
1010

1111
namespace Microsoft.AspNet.TestHost
1212
{
@@ -17,7 +17,7 @@ internal class ResponseFeature : IHttpResponseFeature
1717

1818
public ResponseFeature()
1919
{
20-
Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
20+
Headers = new HeaderDictionary();
2121
Body = new MemoryStream();
2222

2323
// 200 is the default status code all the way down to the host, so we set it
@@ -29,7 +29,7 @@ public ResponseFeature()
2929

3030
public string ReasonPhrase { get; set; }
3131

32-
public IDictionary<string, StringValues> Headers { get; set; }
32+
public IHeaderDictionary Headers { get; set; }
3333

3434
public Stream Body { get; set; }
3535

0 commit comments

Comments
 (0)