Ver Fonte

* Send code 500 in case of exception.

git-svn-id: trunk@17597 -
michael há 14 anos atrás
pai
commit
86ff2a08ba
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      packages/fcl-web/src/base/custweb.pp

+ 2 - 0
packages/fcl-web/src/base/custweb.pp

@@ -272,6 +272,8 @@ begin
     end;
   If (not R.HeadersSent) then
     begin
+    R.Code:=500;
+    R.CodeText:='Application error '+E.ClassName;
     R.ContentType:='text/html';
     end;
   If (R.ContentType='text/html') then