Skip to content

Commit cf4afe5

Browse files
Update to .NET 9 (#748)
* Update to .NET 9 preview 1 - Update to preview 1 of .NET 9 - Suppress new noisy CA1515 warning. * Update .NET SDK to 9.0.100-preview.2.24157.14 (#764) * Update .NET SDK Update .NET SDK to version 9.0.100-preview.2.24157.14. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.1.24081.5 to 9.0.0-preview.2.24128.4 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.1.24081.5 to 9.0.0-preview.2.24128.4. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Move CA1515 suppression Disable in `.ruleset` rather than suppressing the warning. * Update .NET SDK to 9.0.100-preview.3.24204.13 (#779) * Update .NET SDK Update .NET SDK to version 9.0.100-preview.3.24204.13. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.2.24128.4 to 9.0.0-preview.3.24172.13 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.2.24128.4 to 9.0.0-preview.3.24172.13. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update .NET SDK to 9.0.100-preview.4.24267.66 (#816) * Update .NET SDK Update .NET SDK to version 9.0.100-preview.4.24267.66. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.3.24172.13 to 9.0.0-preview.4.24267.6 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.3.24172.13 to 9.0.0-preview.4.24267.6. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update .NET SDK to 9.0.100-preview.5.24307.3 (#834) * Update .NET SDK Update .NET SDK to version 9.0.100-preview.5.24307.3. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.4.24267.6 to 9.0.0-preview.5.24306.11 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.4.24267.6 to 9.0.0-preview.5.24306.11. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update .NET SDK to 9.0.100-preview.6.24328.19 (#849) * Update .NET SDK Update .NET SDK to version 9.0.100-preview.6.24328.19. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.5.24306.11 to 9.0.0-preview.6.24328.4 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.5.24306.11 to 9.0.0-preview.6.24328.4. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Fix build Fix NU1904 errors. --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: Martin Costello <[email protected]> * Update .NET SDK to 9.0.100-preview.7.24407.12 (#872) * Update .NET SDK Update .NET SDK to version 9.0.100-preview.7.24407.12. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.6.24328.4 to 9.0.0-preview.7.24406.2 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.6.24328.4 to 9.0.0-preview.7.24406.2. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update .NET SDK to 9.0.100-rc.1.24452.12 (#888) * Update .NET SDK Update .NET SDK to version 9.0.100-rc.1.24452.12. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.1 Bumps Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.1. --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Update NuGet package Update NuGet package for RC1. --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: Martin Costello <[email protected]> * Drop net7.0 support - Drop TFMs for `net6.0` and `net7.0`. - Add `net8.0` TFM. - Bump version to `4.4.0`. - Fix-up NuGet audit warnings. - Fix new code analysis warnings. * Update .NET SDK to 9.0.100-rc.2.24474.11 (#909) * Update .NET SDK Update .NET SDK to version 9.0.100-rc.2.24474.11. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-rc.1.24452.1 to 9.0.0-rc.2.24474.3 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-rc.1.24452.1 to 9.0.0-rc.2.24474.3. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump NuGet packages Update NuGet packages for .NET 9 RC2. * Enable CentralPackageTransitivePinningEnabled Enable CentralPackageTransitivePinningEnabled to fix build. * Update .NET SDK to 9.0.100 (#933) * Update .NET SDK Update .NET SDK to version 9.0.100. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Microsoft.AspNetCore.Mvc.Testing from 9.0.0-rc.2.24474.3 to 9.0.0 Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-rc.2.24474.3 to 9.0.0. --- updated-dependencies: - dependency-name: Microsoft.AspNetCore.Mvc.Testing dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> * Bump Refit Bump Refit to 8.0.0 to fix build. --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: Martin Costello <[email protected]> * Updates for .NET 9 GA Bump NuGet packages for .NET 9 GA. * Bump version to 5.0.0 Bump major version to 5.0.0 for removed TFMs. --------- Signed-off-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com> Co-authored-by: jet-codeflow-maintainer[bot] <131594757+jet-codeflow-maintainer[bot]@users.noreply.github.com>
1 parent eecf77e commit cf4afe5

17 files changed

+59
-148
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "coreclr",
77
"request": "launch",
88
"preLaunchTask": "build",
9-
"program": "${workspaceFolder}/samples/SampleApp/bin/Debug/net8.0/SampleApp.dll",
9+
"program": "${workspaceFolder}/samples/SampleApp/bin/Debug/net9.0/SampleApp.dll",
1010
"args": [],
1111
"cwd": "${workspaceFolder}/samples/SampleApp",
1212
"stopAtEntry": false,

.vsconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"components": [
44
"Microsoft.VisualStudio.Component.CoreEditor",
55
"Microsoft.VisualStudio.Workload.CoreEditor",
6-
"Microsoft.NetCore.Component.Runtime.8.0",
6+
"Microsoft.NetCore.Component.Runtime.9.0",
77
"Microsoft.NetCore.Component.SDK",
88
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
99
"Microsoft.VisualStudio.Component.Roslyn.LanguageServices"

Directory.Build.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<AnalysisMode>All</AnalysisMode>
1212
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)justeat-oss.snk</AssemblyOriginatorKeyFile>
1313
<Authors>JUSTEAT_OSS</Authors>
14+
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
1415
<ChecksumAlgorithm>SHA256</ChecksumAlgorithm>
1516
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)HttpClientInterception.ruleset</CodeAnalysisRuleSet>
1617
<Company>Just Eat</Company>
@@ -40,8 +41,8 @@
4041
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
4142
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
4243
<UseArtifactsOutput>true</UseArtifactsOutput>
43-
<AssemblyVersion>4.0.0.0</AssemblyVersion>
44-
<VersionPrefix>4.3.1</VersionPrefix>
44+
<AssemblyVersion>5.0.0.0</AssemblyVersion>
45+
<VersionPrefix>5.0.0</VersionPrefix>
4546
</PropertyGroup>
4647
<PropertyGroup Condition=" '$(GITHUB_ACTIONS)' != '' ">
4748
<VersionSuffix Condition=" '$(VersionSuffix)' == '' AND '$(GITHUB_HEAD_REF)' == '' ">beta.$(GITHUB_RUN_NUMBER)</VersionSuffix>

Directory.Packages.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
66
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="27.0.2" />
77
<PackageVersion Include="MartinCostello.Logging.XUnit" Version="0.4.0" />
8-
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.10" />
8+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.0" />
99
<PackageVersion Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
1010
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
1111
<PackageVersion Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" />
@@ -18,7 +18,8 @@
1818
<PackageVersion Include="Shouldly" Version="4.2.1" />
1919
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
2020
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
21-
<PackageVersion Include="System.Text.Json" Version="4.7.2" />
21+
<PackageVersion Include="System.Text.Encodings.Web" Version="9.0.0" />
22+
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
2223
<PackageVersion Include="xunit" Version="2.9.2" />
2324
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
2425
</ItemGroup>

HttpClientInterception.ruleset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
55
<Rule Id="AD0001" Action="None" />
66
<Rule Id="CA1303" Action="None" />
7+
<Rule Id="CA1515" Action="None" />
78
<Rule Id="SA1100" Action="None" />
89
<Rule Id="SA1101" Action="None" />
910
<Rule Id="SA1129" Action="None" />

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.403",
3+
"version": "9.0.100",
44
"allowPrerelease": false,
55
"rollForward": "latestMajor"
66
}

samples/SampleApp.Tests/SampleApp.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsTestProject>true</IsTestProject>
44
<NoWarn>$(NoWarn);CA1056;CA1062;CA1707;CA1711;CA1861;CA2007;SA1600</NoWarn>
5-
<TargetFrameworks>net8.0</TargetFrameworks>
5+
<TargetFrameworks>net9.0</TargetFrameworks>
66
</PropertyGroup>
77
<ItemGroup>
88
<Content Include="testsettings.json;xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
@@ -21,6 +21,7 @@
2121
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
2222
<PackageReference Include="Microsoft.NET.Test.Sdk" />
2323
<PackageReference Include="Shouldly" />
24+
<PackageReference Include="System.Text.Encodings.Web" />
2425
<PackageReference Include="xunit" />
2526
<PackageReference Include="xunit.runner.visualstudio" />
2627
</ItemGroup>

samples/SampleApp/SampleApp.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
<PropertyGroup>
33
<AspNetCoreHostingModel>inprocess</AspNetCoreHostingModel>
44
<NoWarn>$(NoWarn);CA1062;CA2007;SA1600</NoWarn>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="Refit" />
9+
<PackageReference Include="System.Text.Json" OverrideVersion="9.0.0" />
910
</ItemGroup>
1011
</Project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<Suppression>
4+
<DiagnosticId>CP0002</DiagnosticId>
5+
<Target>M:JustEat.HttpClientInterception.HttpClientInterceptorOptionsExtensions.RegisterGetFromJson``1(JustEat.HttpClientInterception.HttpClientInterceptorOptions,System.String,``0,System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0},System.Net.HttpStatusCode)</Target>
6+
<Left>lib/net6.0/JustEat.HttpClientInterception.dll</Left>
7+
<Right>lib/netstandard2.0/JustEat.HttpClientInterception.dll</Right>
8+
<IsBaselineSuppression>true</IsBaselineSuppression>
9+
</Suppression>
10+
<Suppression>
11+
<DiagnosticId>CP0002</DiagnosticId>
12+
<Target>M:JustEat.HttpClientInterception.HttpRequestInterceptionBuilderExtensions.WithJsonContent``1(JustEat.HttpClientInterception.HttpRequestInterceptionBuilder,``0,System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0})</Target>
13+
<Left>lib/net6.0/JustEat.HttpClientInterception.dll</Left>
14+
<Right>lib/netstandard2.0/JustEat.HttpClientInterception.dll</Right>
15+
<IsBaselineSuppression>true</IsBaselineSuppression>
16+
</Suppression>
17+
<Suppression>
18+
<DiagnosticId>CP0002</DiagnosticId>
19+
<Target>M:JustEat.HttpClientInterception.HttpClientInterceptorOptionsExtensions.RegisterGetFromJson``1(JustEat.HttpClientInterception.HttpClientInterceptorOptions,System.String,``0,System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0},System.Net.HttpStatusCode)</Target>
20+
<Left>lib/net7.0/JustEat.HttpClientInterception.dll</Left>
21+
<Right>lib/netstandard2.0/JustEat.HttpClientInterception.dll</Right>
22+
<IsBaselineSuppression>true</IsBaselineSuppression>
23+
</Suppression>
24+
<Suppression>
25+
<DiagnosticId>CP0002</DiagnosticId>
26+
<Target>M:JustEat.HttpClientInterception.HttpRequestInterceptionBuilderExtensions.WithJsonContent``1(JustEat.HttpClientInterception.HttpRequestInterceptionBuilder,``0,System.Text.Json.Serialization.Metadata.JsonTypeInfo{``0})</Target>
27+
<Left>lib/net7.0/JustEat.HttpClientInterception.dll</Left>
28+
<Right>lib/netstandard2.0/JustEat.HttpClientInterception.dll</Right>
29+
<IsBaselineSuppression>true</IsBaselineSuppression>
30+
</Suppression>
31+
</Suppressions>

src/HttpClientInterception/HttpClientInterceptorOptionsExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ public static HttpClientInterceptorOptions RegisterByteArray(
100100
throw new ArgumentNullException(nameof(contentFactory));
101101
}
102102

103-
IDictionary<string, IEnumerable<string>>? multivalueHeaders = null;
103+
Dictionary<string, IEnumerable<string>>? multivalueHeaders = null;
104104

105105
if (responseHeaders is not null)
106106
{
107-
multivalueHeaders = new Dictionary<string, IEnumerable<string>>();
107+
multivalueHeaders = [];
108108

109109
foreach (var pair in responseHeaders)
110110
{
111-
multivalueHeaders[pair.Key] = new[] { pair.Value };
111+
multivalueHeaders[pair.Key] = [pair.Value];
112112
}
113113
}
114114

@@ -157,15 +157,15 @@ public static HttpClientInterceptorOptions RegisterStream(
157157
throw new ArgumentNullException(nameof(contentStream));
158158
}
159159

160-
IDictionary<string, IEnumerable<string>>? multivalueHeaders = null;
160+
Dictionary<string, IEnumerable<string>>? multivalueHeaders = null;
161161

162162
if (responseHeaders is not null)
163163
{
164-
multivalueHeaders = new Dictionary<string, IEnumerable<string>>();
164+
multivalueHeaders = [];
165165

166166
foreach (var pair in responseHeaders)
167167
{
168-
multivalueHeaders[pair.Key] = new[] { pair.Value };
168+
multivalueHeaders[pair.Key] = [pair.Value];
169169
}
170170
}
171171

0 commit comments

Comments
 (0)