this fixes #2

Please merge this in to fix the content-length issue for cloudsearch fixes #2