-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templates
Milestone
Description
From @PinpointTownes on February 6, 2017 4:3
Consider this action:
[HttpPost("~/path")]
public IActionResult Test() => Empty();
Oddly, either the routing stack or MVC seems to consider /path/
requests as valid candidates for this route/action, which is incorrect as /path
and /path/
are two different addresses.
Is there any particular reason for this (abusive) normalization?
Copied from original issue: aspnet/Mvc#5757
Metadata
Metadata
Assignees
Labels
area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templates