gesomax / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

FileCache saves images with corrupted newlines #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Have httplib2 cache an moderately complex and/or large image off a
server that returns the right headers for caching. Use FileCache (by
passing a string path to the Http constructor).
2. Rerequest the image.
3. See traceback!

You expect to pull the image off of your hard drive. Instead there was junk.

This is fixed by changing the file read and write modes in the FileCache
class to "rb" and "wb" respectively.

Original issue reported on code.google.com by kevinwat...@gmail.com on 11 Mar 2008 at 8:56

GoogleCodeExporter commented 8 years ago
Fixed.

Original comment by joe.gregorio@gmail.com on 5 Sep 2008 at 2:36