allow file-like object to be passed, bypassing FileWrapper
fix partial content capture
Merge pull request #1 from wil/master

several fixes