This commit reverts to state of 4c90f885c3. Rewrite are not followed by PUT request, which makes them unusable.
4c90f885c3