Skip to content

Commit 4aa1b3d

Browse files
benaadamssebastienros
authored andcommitted
Proxy use HeaderNames rather than string const (#903)
1 parent 905799f commit 4aa1b3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Proxy/ProxyExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Threading.Tasks;
88
using Microsoft.AspNetCore.Http;
99
using Microsoft.Extensions.Primitives;
10+
using Microsoft.Net.Http.Headers;
1011

1112
namespace Proxy
1213
{
@@ -118,7 +119,7 @@ public static async Task CopyProxyHttpResponse(this HttpContext context, HttpRes
118119
CopyHeaders(responseHeaders, replyMessage.Content.Headers);
119120

120121
// SendAsync removes chunking from the response. This removes the header so it doesn't expect a chunked response.
121-
responseHeaders.Remove("transfer-encoding");
122+
responseHeaders.Remove(HeaderNames.TransferEncoding);
122123

123124
using (var responseStream = await replyMessage.Content.ReadAsStreamAsync())
124125
{

0 commit comments

Comments
 (0)