From 3947357a90ffc7f0a0087cb60cbf4ee713e77eaf Mon Sep 17 00:00:00 2001 From: Daniele Teti Date: Thu, 23 Dec 2021 18:59:10 +0100 Subject: [PATCH] version 1.1.268--yellow-neon --- sources/MVCFramework.pas | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/sources/MVCFramework.pas b/sources/MVCFramework.pas index d13db71c..7385a48b 100644 --- a/sources/MVCFramework.pas +++ b/sources/MVCFramework.pas @@ -1973,27 +1973,22 @@ begin Result := fData; end; + function TWebContext.GetHostingFrameworkType: TMVCHostingFrameworkType; begin {$IFDEF WEBAPACHEHTTP} if FRequest.ClassType = TApacheRequest then begin Exit(hftApache); - end - else - begin -{$IFNDEF LINUX} - if FRequest.ClassType = TISAPIRequest then - begin - Exit(hftISAPI); - end - else -{$ENDIF} -{$ENDIF} - begin - Exit(hftIndy); - end; end; +{$ENDIF} +{$IFDEF MSWINDOWS} + if FRequest.ClassType = TISAPIRequest then + begin + Exit(hftISAPI); + end; +{$ENDIF} + Exit(hftIndy); end; { MVCFromBodyAttribute }