lericson / simples3

Simple, quick Amazon AWS S3 interface in Python
BSD 2-Clause "Simplified" License
96 stars 36 forks source link

put_file() persists request headers across multiple invocations #11

Closed deignacio closed 12 years ago

deignacio commented 12 years ago

simples3.streaming.StreamingMixin.put_file() is missing

without this, if you perform multiple put_file() calls, the second one will send an incorrect Content-Length value since the signature of put_file() uses a mutable dict as a default value to a keyword arg and is modified in the body.

lericson commented 12 years ago

Thanks, man.

npilon commented 12 years ago

Can we get a new simples3 release that incorporates this fix?