Skip to content

Commit f440032

Browse files
Set E.Status on Http Status code
(fix) correction of the Senderror call passing the E.Status
1 parent 51d1ab8 commit f440032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Horse.HandleException.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ procedure HandleException(Req: THorseRequest; Res: THorseResponse; Next: {$IF DE
6969
LStatus := Integer(THTTPStatus.InternalServerError);
7070
LJSON := TJSONObject.Create;
7171
LJSON.{$IF DEFINED(FPC)}Add{$ELSE}AddPair{$ENDIF}('error', E.Message);
72-
SendError(Res, LJSON, Integer(E.Status));
72+
SendError(Res, LJSON, LStatus);
7373
end;
7474
end;
7575
end;

0 commit comments

Comments
 (0)