Fix redirect loop
Add pass-through Content-MD5 header for S3 upload