Skip to content

Commit

Permalink
Merge pull request #6 from josiasmaceda/master
Browse files Browse the repository at this point in the history
Adicionado suporte para versões mais antigas do delphi
  • Loading branch information
viniciussanchez authored Aug 7, 2020
2 parents aa56ae6 + 5b2cee0 commit 78789d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Horse.OctetStream.pas
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ procedure OctetStream(Req: THorseRequest; Res: THorseResponse; Next: TProc);

if Assigned(LContent) and LContent.InheritsFrom(TStream) then
begin
if LWebResponse.ContentType.Trim.IsEmpty then
if Trim(LWebResponse.ContentType).IsEmpty then
begin
LWebResponse.ContentType := CONTENT_TYPE;
end;
Expand All @@ -80,7 +80,7 @@ procedure OctetStream(Req: THorseRequest; Res: THorseResponse; Next: TProc);

if Assigned(LContent) and LContent.InheritsFrom(TFileReturn) then
begin
if LWebResponse.ContentType.Trim.IsEmpty then
if Trim(LWebResponse.ContentType).IsEmpty then
begin
LWebResponse.ContentType := CONTENT_TYPE;
end;
Expand Down

0 comments on commit 78789d3

Please sign in to comment.