Skip to content

Commit 1c77439

Browse files
Merge pull request #20 from AndreaLai74/patch-1
Update Horse.BasicAuthentication.pas
2 parents a21f189 + 0cd4d3f commit 1c77439

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Horse.BasicAuthentication.pas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ procedure Middleware(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED
9797
end;
9898

9999
LBasicAuthenticationEncode := Req.Headers[Config.Header];
100+
101+
//* 03-01-2023 - the authentication Header under Apache Module must be readed from "RawWebRequest" .....
102+
if LBasicAuthenticationEncode.Trim.IsEmpty then LBasicAuthenticationEncode := Req.RawWebRequest.GetFieldByName(Config.Header);
100103

101104
if LBasicAuthenticationEncode.Trim.IsEmpty and not Req.Query.TryGetValue(Config.Header, LBasicAuthenticationEncode) then
102105
begin

0 commit comments

Comments
 (0)