bug in the streaming detection would sometimes make valid http request fail
This commit is contained in:
parent
ad56f82901
commit
a227d7d000
|
@ -2026,10 +2026,7 @@ class GeminiClient(cmd.Cmd):
|
||||||
body = response.content
|
body = response.content
|
||||||
response.close()
|
response.close()
|
||||||
if mime and "text/" in mime:
|
if mime and "text/" in mime:
|
||||||
#body = response.text
|
body = body.decode("UTF-8","replace")
|
||||||
body = response.content.decode("UTF-8","replace")
|
|
||||||
else:
|
|
||||||
body = response.content
|
|
||||||
gi.write_body(body,mime)
|
gi.write_body(body,mime)
|
||||||
return gi
|
return gi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue