fix the log not commit to the azure storage.

when some error happens, the log not commit to the azure storage.
so fix it.
Merge branch 'master' of https://github.com/Azure/azure-linux-extensions
Content-Length is not set in python 2.7.3

so we set it manually.