mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 00:19:19 +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;
|
R.SendContent;
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
If not R.HeadersSent then
|
If (not R.HeadersSent) then
|
||||||
begin
|
begin
|
||||||
R.ContentType:='text/html';
|
R.ContentType:='text/html';
|
||||||
R.SendHeaders;
|
|
||||||
end;
|
end;
|
||||||
If (R.ContentType='text/html') then
|
If (R.ContentType='text/html') then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user