aspnetcore/test/WebSites/WebApiCompatShimWebSite
Doug Bunting 53060be2d7 Content negotiation fails in subsequent requests accepting same media type
- #3140
- clone `MediaTypeHeaderValue` instance before updating it when content negotiation succeeds
  - avoids changes to `MediaTypeConstants` properties and `OutputFormatter.SupportedMediaTypes` entries
  - `MediaTypeHeaderValue.Clone()` does not exist in our DNX Core fork of this class
  - in previous implementation, was called defensively rather than when required
- update `WebApiCompatShimBasicTest` functional tests to use `MvcTestFixture<TStartup>` everywhere
  - #3140 blocked that final migration
  - remove `TestHelper` since it's no longer referenced

nits:
- remove comments mentioning `TestHelper`
- correct spelling of "negotiation"
2015-10-30 14:10:31 -07:00
..
Controllers Content negotiation fails in subsequent requests accepting same media type 2015-10-30 14:10:31 -07:00
Models Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
wwwroot
ActionSelectionFilter.cs API Review - Split up .Actions 2015-09-21 21:54:02 -07:00
Startup.cs Renaming Microsoft.Framework.* -> Microsoft.Extensions.* 2015-10-03 15:44:53 -07:00
WebApiCompatShimWebSite.xproj
project.json Remove Microsoft.AspNet.Server.IIS from test Websites 2015-10-24 08:04:00 -07:00
readme.md

readme.md

WebApiCompatShimWebSite

This web site illustrates how to configure and use WebApiCompatShim to get Web API 2.* like behavior. Features which are used include but are not limited to action results, action selection and parameter binding.