Commit Graph

135 Commits

Author SHA1 Message Date
Mikael Mengistu 40da77eb17 RedirectToHttps uses status code parameter 2016-11-07 14:16:53 -08:00
Mikael Mengistu 5d6fcb07da Throw for trackAllCaptures 2016-11-04 17:59:04 -07:00
Mikael Mengistu c8b5a48b76 Fixed trackAllCaptures enum naming 2016-11-03 19:48:25 -07:00
Mikael Mengistu 222addf264 Added a default status code for redirects in mod_rewrite 2016-11-03 13:22:10 -07:00
Mikael Mengistu a52301f886 Refactor url rewrite bool and enum parsing 2016-11-01 20:29:46 -07:00
Mikael Mengistu 7948a76f74 Added support for the AbortRequest action 2016-10-31 14:19:11 -07:00
Mikael Mengistu c0425c6253 Fixed url rewrite enum parsing. 2016-10-27 14:53:37 -07:00
Pavel Krymets f0b44ac7b5 Check Accept-Encoding headers before creating compression provider (#154) 2016-10-27 14:12:59 -07:00
Mikael Mengistu 67c93a9acd Removed the ? prefix from the QUERY_STRING server variable 2016-10-26 14:06:29 -07:00
Mikael Mengistu 88aff41b78 Fixed exception messages for server variable parsing 2016-10-24 11:34:33 -07:00
Chris R cfe8518fa4 Raise ResponseCompression version from 0.1 to 1.0 2016-10-14 11:12:36 -07:00
Chris R 1bd071de7a #108 Set default mime types to compress 2016-10-14 10:48:42 -07:00
Chris R e7b41c4f53 #108 Move compression providers back to options 2016-10-13 16:25:36 -07:00
Pranav K 88b78e7233 Updating to netcoreapp1.1 2016-10-13 11:11:48 -07:00
Mikael Mengistu 61c8f49e3e Changing Rewrite version to 1.0.0 2016-10-13 10:13:52 -07:00
Pranav K 887bd70fd3 Revert "Updating to netcoreapp1.1"
This reverts commit 151bb91997.
2016-10-12 16:07:55 -07:00
Pranav K 151bb91997 Updating to netcoreapp1.1 2016-10-12 13:44:49 -07:00
Chris R 511d711620 #108 compression code cleanup 2016-10-12 11:28:50 -07:00
Mikael Mengistu 9814f3bfbc Use status code constants 2016-10-06 16:23:55 -07:00
Chris R cd833a7d63 #108 Have response compression replace IHttpSendFileFeature 2016-10-05 16:00:12 -07:00
Nate McMaster 1db5a9e58f
Implement ChangeCookieAction and add factory to parse from mod_rewrite.
Resolves #94
2016-10-05 13:58:37 -07:00
Chris R 3cb0fc640a #108 Make flush work for response compression 2016-10-04 13:10:06 -07:00
Pranav K 7be02fa146 Updating partner package versions 2016-10-03 20:12:14 -07:00
Mikael Mengistu 733c8f77e2 Refactoring a lot of tests in the Rewrite project
* Removed extra newline
2016-10-03 16:56:29 -07:00
Chris R 9bc8a83a39 #108 Change ResponseCompression to be DI centric 2016-09-30 10:15:46 -07:00
Nate McMaster 3e119a87be Remove rewrite rule API with default assumptions about skip remaining rules (#105) 2016-09-28 17:57:49 -06:00
Mikael Mengistu 2a386b7b76 Removed unnecessary import 2016-09-27 17:29:26 -07:00
Chris R 89a6f453ce [ResponseCompression] Compare MimeTypes as case insensitive 2016-09-26 15:35:30 -07:00
Chris R 665f2f8773 ResponseCompression style cleanup 2016-09-26 12:11:45 -07:00
Yves57 2a402abefe Response Compression middleware 2016-09-26 10:37:33 -07:00
Nate McMaster e003594fd8
Remove ChangeEnvironmentAction class and throw when env flag is set in mod_rewrite rule 2016-09-26 09:15:05 -07:00
Mikael Mengistu 58ef98b184 Sample project can now redirect to HTTPS (#106)
Sample project can now redirect to HTTPS
2016-09-21 22:02:45 -07:00
Mikael Mengistu ead052324c Changed the abstract class Rule to an interface IRule. Renamed the RuleTermination enum to RuleResult and renamed the values 2016-09-21 12:31:36 -07:00
Mikael Mengistu d2913edf61 Added tests for ExactMatch, IntegerMatch and StringMatch in the Rewrite
project.
2016-09-12 17:24:28 -07:00
Nate McMaster a5ff9d8003
Add 'Apache' and 'IIS' to internal namespaces and classes 2016-09-06 10:51:19 -07:00
Justin Kotalik 57c1f877e3 Adds path base to redirect location and tests 2016-09-02 11:26:57 -07:00
Justin Kotalik 65e7f7f44b Removes startsWith in favor of array index, guarantee that string is non-empty in someplaces 2016-09-01 12:28:08 -07:00
Justin Kotalik af2c1acee3 Adds XML comments and feedback from 1on1 with Nate. 2016-08-30 13:58:00 -07:00
Justin Kotalik 4a06b37280 Modifies .Rewrite and .Redirect to use normal regex syntax for backreferences 2016-08-30 09:59:57 -07:00
Justin Kotalik 28133b6808 Remove RuleResult, added to context. 2016-08-29 10:26:05 -07:00
ZestyBread f3b4658c2c Feedback from David and API Review/ Tests 2016-08-28 20:16:54 -07:00
Justin Kotalik 0cb7445921 General bugfixes and style cleanup 2016-08-23 17:04:18 -07:00
Justin Kotalik 74b0b7945d Properly parse quotes and white space 2016-08-23 10:42:24 -07:00
Justin Kotalik aea655c2d6 Cleaning up a bunch of todos 2016-08-19 14:30:48 -07:00
Justin Kotalik 73e0d531e0 Adds mod_rewrite tests, small refactors to exception messages and types 2016-08-19 11:26:55 -07:00
Justin Kotalik d1ab35db87 Parsers are now non-static (when appropriate) 2016-08-18 17:17:55 -07:00
Justin Kotalik 7a56073835 Mod_rewrite refactor with cleanup 2016-08-17 16:51:55 -07:00
Justin Kotalik 903949cc74 Update structure of code rules, refactor to IISRewrite 2016-08-10 16:54:59 -07:00
Justin Kotalik 4ce3b8da6a Updating tests, Exception handling cleanup. 2016-08-09 10:44:09 -07:00
Justin Kotalik 5052a94cf7 IIS UrlRewrite Rule Application 2016-08-05 13:46:31 -07:00
Justin Kotalik a62e327c23 IIS UrlRewrite parsing. 2016-08-01 15:39:28 -07:00
Justin Kotalik a9c2656404 Url Rewrite WIP 2016-07-25 16:11:11 -07:00
Doug Bunting bc8785395c 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-06 21:44:53 -07:00
Pranav K ab98dc29ad Updating to RTM builds of xunit 2016-06-29 14:53:17 -07:00
Pranav K 6e7c004a50 Updating to dev versions 2016-06-16 10:17:31 -07:00
N. Taylor Mullen e250efeab6 Remove direct Microsoft.NETCore.Platforms dependency.
- Microsoft.NETCore.App now pulls this package in.

aspnet/Coherence-Signed#344
2016-06-13 15:30:16 -07:00
Chris R 5fe48ada42 #37 Make the header length match optional. 2016-05-23 09:33:22 -07:00
Pranav K 52869b03ec Fix build warnings 2016-05-02 11:27:05 -07:00
Pranav K 7fd1e62322 Use latest build of dotnet-test-xunit 2016-04-19 14:53:51 -07:00
Pavel Krymets 8cbd76f166 Bring Microsoft.NETCore.Platforms dependency back 2016-04-18 17:10:01 -07:00
Pavel Krymets c4f5cfaac3 Migrate tests, tools and samples to portable 2016-04-15 12:07:47 -07:00
David Fowler 52587420e8 Fix build
- Hoist packages using netstandard.library
- Upgrade process since it's not in the standard library
2016-03-25 01:05:48 -07:00
Doug Bunting be0905bf4e Remove project name from output path
- aspnet/Coherence-Signed#187
- remove `<RootNamespace>` settings but maintain other unique aspects e.g. `<DnxInvisibleContent ... />`
- in a few cases, standardize on VS version `14.0` and not something more specific
2016-03-02 15:30:51 -08:00
N. Taylor Mullen 7c60ec6fa5 Transition to netstandard.
- dotnet5.X => netstandard1.y (where y = x-1).
- DNXCore50 => netstandardapp1.5.
- Applied the same changes to ifdefs.
2016-03-01 13:38:47 -08:00
John Luo ea1e9dd018 Updating test TFMs for custom test discovery 2016-02-19 15:47:08 -08:00
Kiran Challa d1a5ce82c0 Enable tests to use dotnet xunit runner 2016-02-09 23:36:14 -08:00
John Luo 6f5e764e87 Updating to new CLI 2016-02-02 17:38:22 -08:00
Chris R 44f03ef83f Restrict x-forwarded-for evalutation. Credit: pmhsfelix.
Use x-forwarded-for validation to restrict other forwarders.

Rename OverrideHeaderMiddleware to ForwardedHeadersMiddleware.

Fix tests

Fix package version.
2016-01-26 10:59:13 -08:00
N. Taylor Mullen ab34d08bc1 Update ASP.NET 5 versions for ASP.NET Core.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:28:45 -08:00
N. Taylor Mullen 3c6f68acb9 Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:25:01 -08:00
N. Taylor Mullen 4bbd498047 Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:58 -08:00
John Luo 6a3ae53108 Reacting to hosting rename 2016-01-17 17:05:04 -08:00
Chris R a442701e22 Merge pull request #24 from tthiery/dev
Added Unit Tests for form field based HTTP Method Override
2016-01-13 11:59:03 -08:00
Victor Hurdugaci 11d048faa7 Build with dotnet 2016-01-12 16:22:33 -08:00
T. Thiery e1eb560c82 Added Unit Tests for form field based HTTP Method Override 2016-01-11 22:26:59 +01:00
John Luo d1a0edb87e Updating to new options pattern 2016-01-07 13:45:40 -08:00
John Luo 92fff3ccf3 Reacting to new Hosting API 2015-12-18 15:44:29 -08:00
Chris R 5e3c7cbbf0 #2 add options, #19 fix IP parser, update extensions. 2015-12-15 15:28:14 -08:00
Pranav K f8b5031ff1 Removing extraneous versions 2015-12-08 15:47:59 -08:00
Cesar Blum Silveira c765fedb21 Fix CoreCLR test pass on Linux (fixes #15). 2015-10-19 14:50:46 -07:00
Pranav K d41f2ccf71 Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:49 -07:00
Chris R 2abd87ff5a Remove un-needed dependenecies. 2015-09-04 10:57:01 -07:00
Chris R 5a3418c2bd Use the new HttpContext.Features API. 2015-08-31 09:22:11 -07:00
Chris R c91cc89ee3 ResponseBuffering middleware initial checkin.
Restrict buffer to reset. Add sample. Cleanup.
2015-08-13 10:04:42 -07:00
Mikael Mengistu 09f492e4a6 Added a middleware to handle header overrides. Initial check in. 2015-07-29 11:37:11 -07:00