We have been using HttpConfiguration.Routes.MapHttpRoute
with routes that use URLs as parameters and it has been working fine for years.
//load image from remote server
config.Routes.MapHttpRoute(
name: "remote-image",
routeTemplate: "rimage/{*path}",
defaults: new { controller = "WebApiClient", action = "rimage" }
);
Recently we upgraded few 3rd party NuGet packages that also upgraded dependency packages. After that this particular route template is not responding the requests that contain period.
For instance this works: https://my.domain.com/rimage/remote/domain/name/some-image
But this does not:
https://my.domain.com/rimage/remote/domain/name/some-image.jpg
What can I add to the template to make sure period can be used?