add content-length for PATCH requests

thanks to @dmitriid