Debug improved in iishandlers

main
Inga 🏳‍🌈 15 years ago
parent d39b969fbc
commit b99521c26b
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 2
      IISMainHandler/MainHandler.cs
  4. 2
      IISMainHandler/handlers/WrongUrlHandler.cs

@ -16,7 +16,7 @@ namespace FLocal.IISHandler {
Uri referer = httpcontext.Request.UrlReferrer; Uri referer = httpcontext.Request.UrlReferrer;
if(referer != null && referer.PathAndQuery.StartsWith("/static")) { if(referer != null && referer.PathAndQuery.StartsWith("/static")) {
throw new HttpException(403, "You have come from the static page"); throw new HttpException(403, "You have come from the static page '" + referer + "'");
} }
if(!FLocal.Common.Config.isInitialized) { if(!FLocal.Common.Config.isInitialized) {

@ -8,7 +8,7 @@ namespace FLocal.IISHandler.handlers {
class WrongUrlHandler : ISpecificHandler { class WrongUrlHandler : ISpecificHandler {
public void Handle(WebContext context) { public void Handle(WebContext context) {
throw new HttpException(400, "wrong url"); throw new HttpException(400, "wrong url '" + context.httprequest.RawUrl + "'");
} }
} }

Loading…
Cancel
Save