Commit Graph

71 Commits

Author SHA1 Message Date
James Newton-King 066c5ce337
Implicitly execute matched endpoint at the end of middleware pipeline (#1059) 2018-11-07 12:57:31 +13:00
James Newton-King 5f75c07bbf
Add RoutesValues to HttpRequest (#1042) 2018-10-02 16:03:58 +13:00
Pranav K d0ddb068be
Return FormCollection.Empty when Content-Length is 0 (#1038)
* Return FormCollection.Empty when Content-Length is 0

Fixes https://github.com/aspnet/Mvc/issues/5631
2018-09-13 13:35:31 -07:00
Simon Cropp cfb0d732b0 fix some spelling (#1035) 2018-09-06 08:46:34 -07:00
David Fowler 0f4f1950f1
Attempt to make it easier to detect when the request is done (#1021)
- Today the async local reference to the HttpContext flows when the execution context is captured. When the http request has ended, the HttpContext property will return the reference to an invalid HttpContext instead of returning null. This change stores both the request id and the HttpContext and makes sure both match before returning anything valid.
- This is still racy but should catch more cases of people doing bad things.
- There will still be issue if people store the context in a local and use that reference instead of accessing it through the property getter but we can live with that.
- Set the TraceIdentifier to null in the default HttpContextFactory
- Added tests
2018-06-26 11:49:12 -07:00
Justin Kotalik 150bb3faf4
Add BindingAddress to HttpAbstractions (#977) 2017-12-18 18:40:11 -08:00
Pranav K 231f3a44b1 Update samples and tests to target netcoreapp2.1 2017-11-13 15:13:10 -08:00
Chris Ross 3e3772eecd
Implement read-only HeaderDictionary (#958) 2017-11-06 20:03:49 -08:00
Nate McMaster c0f937239a Pin tool and package versions to make builds more repeatable
Part of aspnet/Universe#575
2017-11-01 09:32:44 -07:00
Nate McMaster 8dc80c54ad Minor test code changes to resolve xUnit2013 build error 2017-10-05 17:13:26 -07:00
Henk Mollema d6a3c3f83e Add helper to register IHttpContextAccessor (#947) 2017-10-02 08:31:12 -07:00
Nate McMaster 9c699f74b0 Use Directory.Build.props/targets 2017-08-29 12:41:50 -07:00
Justin Kotalik 6657f4cf36 Adds MaxAge property to CookieOptions/Builder (#904) 2017-08-22 16:57:04 -07:00
Nate McMaster 5b58a6a71d Upgrade to xunit 2.3.0-beta4 2017-08-22 16:29:13 -07:00
Justin Kotalik 594f55947f Keep ResponseCookie options on delete. (#905) 2017-08-10 18:01:30 -07:00
Justin Kotalik 5ec8a7134e Adds FormFeature quoted boundary test 2017-08-08 21:09:39 -07:00
Cesar Blum Silveira 8d4e04cfb4 Fix duplicate test warnings. 2017-07-10 16:43:44 -07:00
Chris R 85402d4bd6 Add CancellationToken to ISession Load/CommitAsync 2017-07-05 09:05:01 -07:00
David Fowler 9bf94d3667 Remove unused parameter in ctor of HttpContextFactory (#881)
- We removed the use of the ObjectPoolProvider in 1.x, this change
just removes it from the ctor.
2017-06-29 11:44:46 -07:00
Hao Kung b1f92fb6bc Forbid + obsolete context.Authentication 2017-05-25 18:26:36 -07:00
John Luo 6e87b0f5eb Target netstandard2.0 TFM 2017-05-18 14:38:26 -07:00
John Luo 07470d41b1 Ignore empty header values #722 2017-05-17 12:45:56 -07:00
Nate McMaster bf0b0e283d Upgrade test framework versions and fix test issues 2017-05-15 15:25:02 -07:00
John Luo 9168442704 Migration 2017-05-05 14:59:10 -07:00
Pranav K b3b846c27e Remove net451 as a cross-compile target 2017-03-24 11:46:13 -07:00
John Luo c69c926217 Merge branch 'properties-dict' of https://github.com/tuespetre/HttpAbstractions into tdev 2017-03-21 17:45:29 -07:00
Kiran Challa 50f3cd6877 Changed samples and tests to run on netcoreapp2.0 2017-03-21 13:25:34 -07:00
Derek Gray d89f66f150 Use a CopyOnWriteDictionary in ApplicationBuilder so branches can set their own properties
Fix #783
2017-03-21 14:31:26 -05:00
Nate McMaster 73d58b7a13 Unify dependency versions to one file 2017-03-15 13:54:28 -07:00
Doug Bunting d4800d188a Bump test projects up to .NET 4.5.2
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-14 08:37:12 -08:00
Chris R 96f33b27d4 Migrate from xproj to csproj 2017-02-03 15:37:51 -08:00
Pranav K 991fbb08bc Updating to 4.4 CoreFx packages 2016-12-14 14:47:29 -08:00
Pranav K 4fbb0b01fc Updating versions to 1.2.0-* 2016-11-09 14:17:55 -08:00
Pranav K cdbd9ffa74 Updating to netcoreapp1.1 2016-10-13 11:18:10 -07:00
Pranav K 11a67b8f55 Revert "Updating to netcoreapp1.1"
This reverts commit 6d5cd28e9b.
2016-10-12 16:08:46 -07:00
Pranav K 6d5cd28e9b Updating to netcoreapp1.1 2016-10-12 13:45:30 -07:00
Ben Adams 4569653504 Don't allocate for ResponseCookiesFeature 2016-10-07 10:01:42 -07:00
Pranav K 874dcebbcb Updating partner package versions 2016-09-28 11:50:48 -07:00
BrennanConroy 9a0ea424ea Fix cross appdomain exception 2016-07-25 09:48:10 -07:00
Doug Bunting 748e96f513 One build to rule them all
- well, at least VS and command-line builds will share output
- part of aspnet/Coherence-Signed#277
2016-07-07 12:01:29 -07:00
Pranav K 62eaf16585 Updating to RTM builds of xunit 2016-07-01 11:21:28 -07:00
John Luo 4986137ffe Use filename* for files in multipart forms when available #651 2016-06-29 12:31:52 -07:00
Chris R 3c0c02112d #659 Parse headers with consecutive commas 2016-06-23 14:22:23 -07:00
Pranav K 20d608170e Updating to dev versions 2016-06-16 10:17:59 -07:00
N. Taylor Mullen 54bdd47763 Remove direct Microsoft.NETCore.Platforms dependency.
- Microsoft.NETCore.App now pulls this package in.

aspnet/Coherence-Signed#344
2016-06-13 15:28:32 -07:00
Pavel Krymets 8b3c308c22 Limit value number instead of key number in form reader 2016-06-01 15:46:40 -07:00
moozzyk e854d3aa9a Allow query string parameters without values
Addresses #624
2016-05-23 15:41:37 -07:00
John Luo 6d91a160b6 Add IsAvailable property to ISession #634 2016-05-23 10:08:05 -07:00
Pranav K a4bd3bc895 Merge branch 'release' into dev 2016-05-02 14:56:19 -07:00
Chris R 5767306875 #547 Remove '+' replacement from request cookies. 2016-05-02 14:44:26 -07:00