Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
# Please see issue #6 (#6).
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Jan 1, 2013
1 parent 65b0d61 commit c8f0ceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion brokers/brookfclcgibroker.pas
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ procedure TBrookCGIHandler.ShowRequestException(R: TResponse; E: Exception);
R.SendContent;
Exit;
end;
if R.ContentType = BROOK_HTTP_CONTENT_TYPE_TEXT_HTML then
if ((R.ContentType = BROOK_HTTP_CONTENT_TYPE_TEXT_HTML) or
(BrookSettings.ContentType = BROOK_HTTP_CONTENT_TYPE_TEXT_HTML)) and
(not R.HeadersSent) then
begin
VStr := TStringList.Create;
try
Expand Down
4 changes: 3 additions & 1 deletion brokers/brookfclfcgibroker.pas
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ procedure TBrookFCGIHandler.ShowRequestException(R: TResponse; E: Exception);
R.SendContent;
Exit;
end;
if R.ContentType = BROOK_HTTP_CONTENT_TYPE_TEXT_HTML then
if ((R.ContentType = BROOK_HTTP_CONTENT_TYPE_TEXT_HTML) or
(BrookSettings.ContentType = BROOK_HTTP_CONTENT_TYPE_TEXT_HTML)) and
(not R.HeadersSent) then
begin
VStr := TStringList.Create;
try
Expand Down

0 comments on commit c8f0ceb

Please sign in to comment.