File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
3- <Version >2.1.0 </Version >
3+ <Version >2.1.1 </Version >
44 <AssemblyName >AspNetCore.Proxy</AssemblyName >
55 <PackageId >AspNetCore.Proxy</PackageId >
66 <DocumentationFile >bin\AspNetCore.Proxy.xml</DocumentationFile >
Original file line number Diff line number Diff line change @@ -62,11 +62,10 @@ private static HttpRequestMessage CreateProxyHttpRequest(this HttpContext contex
6262
6363 // Copy the request headers.
6464 foreach ( var header in request . Headers )
65- {
6665 if ( ! requestMessage . Headers . TryAddWithoutValidation ( header . Key , header . Value . ToArray ( ) ) )
6766 requestMessage . Content ? . Headers . TryAddWithoutValidation ( header . Key , header . Value . ToArray ( ) ) ;
68- }
6967
68+ // Write to request conent, when necessary.
7069 if ( ! HttpMethods . IsGet ( requestMethod ) &&
7170 ! HttpMethods . IsHead ( requestMethod ) &&
7271 ! HttpMethods . IsDelete ( requestMethod ) &&
You can’t perform that action at this time.
0 commit comments