Skip to content

Commit

Permalink
Update version.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Apr 22, 2019
1 parent 85660de commit 35dad3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/AspNetCore.Proxy.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<AssemblyName>AspNetCore.Proxy</AssemblyName>
<PackageId>AspNetCore.Proxy</PackageId>
<DocumentationFile>bin\AspNetCore.Proxy.xml</DocumentationFile>
Expand Down
3 changes: 1 addition & 2 deletions src/Core/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@ private static HttpRequestMessage CreateProxyHttpRequest(this HttpContext contex

// Copy the request headers.
foreach (var header in request.Headers)
{
if (!requestMessage.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray()))
requestMessage.Content?.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray());
}

// Write to request conent, when necessary.
if (!HttpMethods.IsGet(requestMethod) &&
!HttpMethods.IsHead(requestMethod) &&
!HttpMethods.IsDelete(requestMethod) &&
Expand Down

0 comments on commit 35dad3a

Please sign in to comment.