Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/dependencies.props2
-rw-r--r--build/sources.props2
-rw-r--r--eng/Dependencies.props1
-rw-r--r--eng/PatchConfig.props2
-rw-r--r--src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs5
5 files changed, 7 insertions, 5 deletions
diff --git a/build/dependencies.props b/build/dependencies.props
index 9d8b576ff8..316c47c1ad 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -106,7 +106,7 @@
<FSharpCorePackageVersion>4.2.1</FSharpCorePackageVersion>
<GoogleProtobufPackageVersion>3.1.0</GoogleProtobufPackageVersion>
<LibuvPackageVersion>1.10.0</LibuvPackageVersion>
- <MessagePackPackageVersion>1.7.3.4</MessagePackPackageVersion>
+ <MessagePackPackageVersion>1.7.3.7</MessagePackPackageVersion>
<MicrosoftApplicationInsightsAspNetCorePackageVersion>2.1.1</MicrosoftApplicationInsightsAspNetCorePackageVersion>
<MicrosoftAspNetIdentityEntityFrameworkPackageVersion>2.2.1</MicrosoftAspNetIdentityEntityFrameworkPackageVersion>
<MicrosoftAspNetWebApiClientPackageVersion>5.2.6</MicrosoftAspNetWebApiClientPackageVersion>
diff --git a/build/sources.props b/build/sources.props
index 5b458ddf09..7648381d3b 100644
--- a/build/sources.props
+++ b/build/sources.props
@@ -19,7 +19,7 @@
https://dotnet.myget.org/F/aspnetcore-master/api/v3/index.json;
https://dotnet.myget.org/F/roslyn/api/v3/index.json;
https://vside.myget.org/F/vssdk/api/v3/index.json;
- https://vside.myget.org/F/vsmac/api/v3/index.json
+ https://vside.myget.org/F/vsmac/api/v3/index.json;
</RestoreSources>
</PropertyGroup>
</Project>
diff --git a/eng/Dependencies.props b/eng/Dependencies.props
index e98d42be14..2f7b478d68 100644
--- a/eng/Dependencies.props
+++ b/eng/Dependencies.props
@@ -98,6 +98,7 @@ and are generated based on the last package release.
<LatestPackageReference Include="AngleSharp" Version="$(AngleSharpPackageVersion)" />
<LatestPackageReference Include="BenchmarkDotNet" Version="$(BenchmarkDotNetPackageVersion)" />
<LatestPackageReference Include="FSharp.Core" Version="$(FSharpCorePackageVersion)" />
+ <LatestPackageReference Include="MessagePack" Version="$(MessagePackPackageVersion)" />
<LatestPackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
<LatestPackageReference Include="Moq" Version="$(MoqPackageVersion)" />
<LatestPackageReference Include="Google.ProtoBuf" Version="$(GoogleProtoBufPackageVersion)" />
diff --git a/eng/PatchConfig.props b/eng/PatchConfig.props
index 6929e5a699..15c67e764d 100644
--- a/eng/PatchConfig.props
+++ b/eng/PatchConfig.props
@@ -31,6 +31,8 @@ Later on, this will be checked using this condition:
Microsoft.AspNetCore.Identity.UI;
Microsoft.AspNetCore.Mvc.Core;
Microsoft.AspNetCore.Mvc.RazorPages;
+ Microsoft.AspNetCore.SignalR.Protocols.MessagePack;
+ Microsoft.AspNetCore.SignalR.Redis;
</PackagesInPatch>
</PropertyGroup>
diff --git a/src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs b/src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs
index 0b693605bf..36e4886e42 100644
--- a/src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs
+++ b/src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs
@@ -245,14 +245,13 @@ namespace Microsoft.AspNetCore.SignalR.Protocol
var headerCount = ReadMapLength(input, ref offset, "headers");
if (headerCount > 0)
{
- // If headerCount is larger than int.MaxValue, things are going to go horribly wrong anyway :)
- var headers = new Dictionary<string, string>((int)headerCount, StringComparer.Ordinal);
+ var headers = new Dictionary<string, string>(StringComparer.Ordinal);
for (var i = 0; i < headerCount; i++)
{
var key = ReadString(input, ref offset, $"headers[{i}].Key");
var value = ReadString(input, ref offset, $"headers[{i}].Value");
- headers[key] = value;
+ headers.Add(key, value);
}
return headers;
}