Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put_file() persists request headers across multiple invocations #11

Merged
merged 1 commit into from
Feb 28, 2012

Conversation

deignacio
Copy link

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.

this allows multiple calls to put_file to correctly calculate
the request headers.
lericson added a commit that referenced this pull request Feb 28, 2012
put_file() persists request headers across multiple invocations
@lericson lericson merged commit e85d8d5 into lericson:master Feb 28, 2012
@lericson
Copy link
Owner

Thanks, man.

@npilon
Copy link

npilon commented Jun 27, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants