From 2e4a1613956097a02b0c27642c19e5fcd9efd847 Mon Sep 17 00:00:00 2001 From: bung87 Date: Sat, 13 Apr 2024 02:06:48 +0800 Subject: [PATCH] minor improvements --- src/scorper/http/streamserver.nim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/scorper/http/streamserver.nim b/src/scorper/http/streamserver.nim index 9a8f86b..f9332e0 100644 --- a/src/scorper/http/streamserver.nim +++ b/src/scorper/http/streamserver.nim @@ -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):