mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Fixes 401 Unauthorized API responses being incorrectly cached
This commit is contained in:
1 parent
f246f0bf75
commit
d6af519e17
37 files changed
+298
-174
No files matched your search
@@ -66,8 +66,6 @@ public class UrlService : IUrlService
|
||||
foreach (PropertyInfo prop in additionalRouteValues.GetType().GetProperties())
|
||||
routeValues.Add(prop.Name, prop.GetValue(additionalRouteValues));
|
||||
|
||||
// create route values based on whether the controller is localized
|
||||
object values = needsCulture ? new { culture, action } : new { action };
|
||||
return _linkGenerator.GetUriByAction(httpContext: httpContext, action: action, controller: controller, values: routeValues, scheme: scheme);
|
||||
return _linkGenerator.GetUriByAction(httpContext: httpContext, action: action, controller: controller, values: routeValues, scheme: scheme);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user