Fixes failed to upload without "Content-Length" when uploading empty file

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>