mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:29:25 +02:00
* Renamed TResponse.SendTemporaryRedirect to SendRedirect for Delphi
compatibility. Bug #13254 git-svn-id: trunk@13006 -
This commit is contained in:
parent
709fcaa7bd
commit
e0c018c8f1
@ -155,7 +155,7 @@ begin
|
||||
if R.ContentSent then exit;
|
||||
If RedirectOnError and not R.HeadersSent then
|
||||
begin
|
||||
R.SendTemporaryRedirect(format(RedirectOnErrorURL,[HTTPEncode(E.Message)]));
|
||||
R.SendRedirect(format(RedirectOnErrorURL,[HTTPEncode(E.Message)]));
|
||||
R.SendContent;
|
||||
Exit;
|
||||
end;
|
||||
|
@ -334,7 +334,7 @@ type
|
||||
Property HeadersSent : Boolean Read FHeadersSent;
|
||||
Property ContentSent : Boolean Read FContentSent;
|
||||
property Cookies: TCookies read FCookies;
|
||||
Procedure SendTemporaryRedirect(const TargetURL:String);
|
||||
Procedure SendRedirect(const TargetURL:String);
|
||||
end;
|
||||
|
||||
{ TSessionVariable }
|
||||
@ -1420,7 +1420,7 @@ begin
|
||||
SendContent;
|
||||
end;
|
||||
|
||||
procedure TResponse.SendTemporaryRedirect(const TargetURL: String);
|
||||
procedure TResponse.SendRedirect(const TargetURL: String);
|
||||
begin
|
||||
Location := TargetURL;
|
||||
if FHttpVersion = '1.1' then
|
||||
|
Loading…
Reference in New Issue
Block a user