We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cde9a2 commit 9d1d69aCopy full SHA for 9d1d69a
1 file changed
src/Horse.BasicAuthentication.pas
@@ -152,6 +152,11 @@ procedure Middleware(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED
152
LIsAuthenticated := Authenticate(LBasicAuthenticationDecode.Strings[0], LBasicAuthenticationDecode.Strings[1]);
153
end;
154
except
155
+ on E: EEncodingError do
156
+ begin
157
+ Res.Send('Erro na conversão do Base64. Certifique-se de que a string Base64 está correta.').Status(THTTPStatus.InternalServerError);
158
+ raise EHorseCallbackInterrupted.Create;
159
+ end;
160
on E: exception do
161
begin
162
Res.Send(E.Message).Status(THTTPStatus.InternalServerError);
0 commit comments