From a227d7d000a06707ec59624cf2c8feec58ac6935 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Fri, 25 Mar 2022 20:53:45 +0100 Subject: [PATCH] bug in the streaming detection would sometimes make valid http request fail --- offpunk.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/offpunk.py b/offpunk.py index f85fa67..10a0efe 100755 --- a/offpunk.py +++ b/offpunk.py @@ -2026,10 +2026,7 @@ class GeminiClient(cmd.Cmd): body = response.content response.close() if mime and "text/" in mime: - #body = response.text - body = response.content.decode("UTF-8","replace") - else: - body = response.content + body = body.decode("UTF-8","replace") gi.write_body(body,mime) return gi