Skip to content

Commit 859c1e0

Browse files
committed
Merge branch 'master' into merge/release/3.1-to-master
2 parents a334938 + 97db493 commit 859c1e0

File tree

70 files changed

+1486
-1367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1486
-1367
lines changed

.github/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ area-signalr:
5151
- src/SignalR/**/*
5252

5353
#area-websockets:
54+
55+
api-suggestion:
56+
- src/**/ref/**/*

.github/workflows/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/labeler@v2
10+
if: github.repository == 'aspnet/AspNetCore'
1011
with:
1112
repo-token: "${{ secrets.GITHUB_TOKEN }}"

NuGet.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<configuration>
33
<packageSources>
44
<clear />
5+
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
6+
<add key="darc-pub-dotnet-corefx-4ac4c03" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-corefx-4ac4c036/nuget/v3/index.json" />
7+
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
58
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
69
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
710
<add key="aspnet-blazor" value="https://dotnetfeed.blob.core.windows.net/aspnet-blazor/index.json" />

THIRD-PARTY-NOTICES.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,31 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
189189
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
190190
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
191191
THE SOFTWARE.
192+
193+
License notice for corefx
194+
195+
------------------------------------------------
196+
197+
The MIT License (MIT)
198+
199+
Copyright (c) .NET Foundation and Contributors
200+
201+
All rights reserved.
202+
203+
Permission is hereby granted, free of charge, to any person obtaining a copy
204+
of this software and associated documentation files (the "Software"), to deal
205+
in the Software without restriction, including without limitation the rights
206+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
207+
copies of the Software, and to permit persons to whom the Software is
208+
furnished to do so, subject to the following conditions:
209+
210+
The above copyright notice and this permission notice shall be included in all
211+
copies or substantial portions of the Software.
212+
213+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
214+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
215+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
216+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
217+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
218+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
219+
SOFTWARE.

eng/Version.Details.xml

Lines changed: 200 additions & 200 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 100 additions & 100 deletions
Large diffs are not rendered by default.

src/Hosting/Hosting/src/Http/DefaultHttpContextFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public DefaultHttpContextFactory(IServiceProvider serviceProvider)
2626
_serviceScopeFactory = serviceProvider.GetRequiredService<IServiceScopeFactory>();
2727
}
2828

29+
internal IHttpContextAccessor HttpContextAccessor => _httpContextAccessor;
30+
2931
public HttpContext Create(IFeatureCollection featureCollection)
3032
{
3133
if (featureCollection is null)

src/Hosting/Hosting/src/Internal/HostingApplication.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ public void DisposeContext(Context context, Exception exception)
9696
if (_defaultHttpContextFactory != null)
9797
{
9898
_defaultHttpContextFactory.Dispose((DefaultHttpContext)httpContext);
99+
100+
if (_defaultHttpContextFactory.HttpContextAccessor != null)
101+
{
102+
// Clear the HttpContext if the accessor was used. It's likely that the lifetime extends
103+
// past the end of the http request and we want to avoid changing the reference from under
104+
// consumers.
105+
context.HttpContext = null;
106+
}
99107
}
100108
else
101109
{

0 commit comments

Comments
 (0)