mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:29:24 +02:00
* Do not send headers before setting content, as content-length will be set by setting the content.
git-svn-id: trunk@17596 -
This commit is contained in:
parent
0fb7ad5a07
commit
63f6b66d0f
@ -270,10 +270,9 @@ begin
|
||||
R.SendContent;
|
||||
Exit;
|
||||
end;
|
||||
If not R.HeadersSent then
|
||||
If (not R.HeadersSent) then
|
||||
begin
|
||||
R.ContentType:='text/html';
|
||||
R.SendHeaders;
|
||||
end;
|
||||
If (R.ContentType='text/html') then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user