Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Apr 12, 2024
1 parent ff9622b commit 2e4a161
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,7 @@ template devLog(req: ImpRequest, content: untyped) =
template handleCompress(needCompress: bool; content: string; ctn: var string; length: var int) =
if needCompress:
headers.ContentEncoding "gzip"
try:
ctn = compress(content, BestSpeed, dfGzip)
except ZippyError:

ctn = compress(content, BestSpeed, dfGzip)
length = ctn.len
else:
when defined(gcArc) or defined(gcOrc):
Expand Down

0 comments on commit 2e4a161

Please sign in to comment.