Skip to content

Commit

Permalink
FIX Added other .net WebForm Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecastronovo committed Oct 7, 2017
1 parent d18b38c commit 47cdb97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Nancy/Owin/NancyMiddleware.cs
Expand Up @@ -82,7 +82,13 @@ public static MidFunc UseNancy(NancyOptions options = null)
//Check if the webform is not present inthe path ".aspx"
//if present move to next
if (owinRequestPath.ToLowerInvariant().Contains(".aspx")) return next.Invoke(environment);
if (owinRequestPath.ToLowerInvariant().Contains(".aspx")
|| owinRequestPath.ToLowerInvariant().Contains(".asmx")
|| owinRequestPath.ToLowerInvariant().Contains(".ascx")
|| owinRequestPath.ToLowerInvariant().Contains(".ashx")
|| owinRequestPath.ToLowerInvariant().Contains(".asmx")
|| owinRequestPath.ToLowerInvariant().Contains(".asax")
) return next.Invoke(environment);
var serverClientIp = Get<string>(environment, "server.RemoteIpAddress");
Expand Down

0 comments on commit 47cdb97

Please sign in to comment.