fixed a bug while caching binary files

This commit is contained in:
Lionel Dricot 2022-01-13 10:06:10 +01:00
parent b1318e0289
commit 3bc6022348
1 changed files with 2 additions and 0 deletions

View File

@ -803,6 +803,8 @@ you'll be able to transparently follow links to Gopherspace!""")
except UnicodeError:
raise RuntimeError("Could not decode response body using %s\
encoding declared in header!" % encoding)
else:
body = fbody
gi.write_body(body,mime)
return gi