I have a project that was passing all tests against S3, but failed when I injected mock-s3. These commits fix all the problems I ran into.
Always set a Last-Modified field, like Amazon does
Set Content-Type to application/octet-stream, if unset
Don't try to recreate a bucket dir, if it exists
Thank you for the patches. Sorry for the delay was offline for the holidays.