We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83f9427 + d69a3ab commit bf4bf8bCopy full SHA for bf4bf8b
src/Horse.JWT.pas
@@ -111,6 +111,7 @@ procedure Middleware(AHorseRequest: THorseRequest;
111
LValidations: IJOSEConsumer;
112
LJWT: TJOSEContext;
113
{$ENDIF}
114
+ LPathInfo: string;
115
LToken, LHeaderNormalize: string;
116
LSession: TObject;
117
LJSON: TJSONObject;
@@ -156,7 +157,10 @@ procedure Middleware(AHorseRequest: THorseRequest;
156
157
end;
158
159
begin
- if MatchText(AHorseRequest.RawWebRequest.PathInfo, Config.SkipRoutes) then
160
+ LPathInfo := AHorseRequest.RawWebRequest.PathInfo;
161
+ if LPathInfo = EmptyStr then
162
+ LPathInfo := '/';
163
+ if MatchText(LPathInfo, Config.SkipRoutes) then
164
165
ANext();
166
Exit;
0 commit comments