fixed a bug while caching binary files
This commit is contained in:
parent
b1318e0289
commit
3bc6022348
|
@ -803,6 +803,8 @@ you'll be able to transparently follow links to Gopherspace!""")
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
raise RuntimeError("Could not decode response body using %s\
|
raise RuntimeError("Could not decode response body using %s\
|
||||||
encoding declared in header!" % encoding)
|
encoding declared in header!" % encoding)
|
||||||
|
else:
|
||||||
|
body = fbody
|
||||||
gi.write_body(body,mime)
|
gi.write_body(body,mime)
|
||||||
return gi
|
return gi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue