Browse files

Revert "Fix issue with API header binding when running under a subdir…


This reverts commit d9e86ff.
  • Loading branch information...
1 parent d9e86ff commit 3d9c3e7a26ee13b8464f5d6871de134d67939ac6 @pranavkm pranavkm committed Apr 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Website/Infrastructure/HttpHeaderValueProviderFactory.cs
@@ -10,7 +10,7 @@ public override IValueProvider GetValueProvider(ControllerContext controllerCont
var request = controllerContext.RequestContext.HttpContext.Request;
// Use this value provider only if a route is located under "API"
- if (request.Path.Contains("/api/"))
+ if (request.Path.TrimStart('/').StartsWith("api", StringComparison.OrdinalIgnoreCase))
return new HttpHeaderValueProvider(request, "ApiKey");
return null;

0 comments on commit 3d9c3e7

Please sign in to comment.