Skip to content

Commit

Permalink
Adicionado suporte para versões que não possuem helper que disponibil…
Browse files Browse the repository at this point in the history
…iza Trim;
  • Loading branch information
josiasmaceda committed Aug 7, 2020
1 parent aa56ae6 commit 5b2cee0
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 5b2cee0

Please sign in to comment.