From 5a64d94e53641261bafae83018541ffb9a89ee65 Mon Sep 17 00:00:00 2001 From: "daniele.teti" Date: Thu, 18 Dec 2014 13:41:04 +0000 Subject: [PATCH] --- sources/MVCFramework.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/MVCFramework.pas b/sources/MVCFramework.pas index 85ceee02..01d7c1a8 100644 --- a/sources/MVCFramework.pas +++ b/sources/MVCFramework.pas @@ -1025,8 +1025,8 @@ end; procedure TMVCEngine.LoadSystemControllers; begin - // AddController(TMVCStaticContents); //--daniele Static files are not handled directly by the router - AddController(TMVCBUSController); + if Config[TMVCConfigKey.Messaging].Equals('true') then + AddController(TMVCBUSController); end; procedure TMVCEngine.OnBeforeDispatch(Sender: TObject; Request: TWebRequest; @@ -2091,6 +2091,7 @@ end; { TMVCApacheWebRequest } {$IF CompilerVersion >= 27} + function TMVCApacheWebRequest.ClientIP: string; begin raise EMVCException.Create(' Not implemented'); @@ -2429,6 +2430,7 @@ end; {$IFDEF IOCP} + constructor TMVCIOCPWebRequest.Create(AWebRequest: TWebRequest); begin inherited;