fix headers when uploading streams and multiparts