From 61a0b0cce9c4644668fef40971569214778425ae Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 20 Sep 2010 17:45:23 +0000 Subject: [PATCH] WrongUrl logging improved --- Builder/IISMainHandler/build.txt | 2 +- IISMainHandler/handlers/WrongUrlHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 7264857..b6e8717 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -1482 \ No newline at end of file +1484 \ No newline at end of file diff --git a/IISMainHandler/handlers/WrongUrlHandler.cs b/IISMainHandler/handlers/WrongUrlHandler.cs index 9c59db5..870b5c0 100644 --- a/IISMainHandler/handlers/WrongUrlHandler.cs +++ b/IISMainHandler/handlers/WrongUrlHandler.cs @@ -16,7 +16,7 @@ namespace FLocal.IISHandler.handlers { } protected override IEnumerable getSpecificData(WebContext context) { - if(!context.httprequest.Path.StartsWith("/static/")) context.LogError(new WrongUrlException()); + if(!context.httprequest.Path.StartsWith("/static/") && !context.httprequest.Path.StartsWith("/favicon")) context.LogError(new WrongUrlException()); return new XElement[] { new XElement("path", context.httprequest.Path) };