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

Already on GitHub? Sign in to your account

Bug 800 #9

Merged
merged 1 commit into from Jun 7, 2011

Conversation

Projects
None yet
2 participants
Contributor

rzezeski commented Mar 9, 2011

Patch for bug 800 -- a write with no Range should truncate the file.

@rzezeski rzezeski no-range PUT should truncate file
If a Range header is _not_ specified in a PUT request then truncate
the file so that the operation essentially becomes equal to
overwriting a file on a typical filesystem.
b2b0a46
Contributor

beerriot commented Jun 7, 2011

I am only confused by the commit+PR comment, as Range does not affect a PUT request. Content-Range could, as could a content-type of multipart/byteranges, but the luwak webmachine resource current ignores the first and bombs on the second.

However, the code works as described. +1 merge.

@rzezeski rzezeski added a commit that referenced this pull request Jun 7, 2011

@rzezeski rzezeski Merge pull request #9 from rzezeski/bug-800
Bug 800
fa26546

@rzezeski rzezeski merged commit fa26546 into basho-labs:master Jun 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment