• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

winazurestorageのフォーク


Commit MetaInfo

修订版4f4f5d65d3931fabdac537f085060fdf1f2a7fff (tree)
时间2011-06-09 09:02:11
作者Steve Marx <Steve.Marx@micr...>
CommiterSteve Marx

Log Message

prevent urllib2 from defaulting to a bogus content type

更改概述

差异

--- a/winazurestorage.py
+++ b/winazurestorage.py
@@ -314,6 +314,7 @@ class BlobStorage(Storage):
314314 req = RequestWithMethod("PUT", "%s/%s/%s" % (self.get_base_url(), container_name, blob_name), data=data)
315315 req.add_header("Content-Length", "%d" % len(data))
316316 if content_type is not None: req.add_header("Content-Type", content_type)
317+ else: req.add_header("Content-Type", "")
317318 self._credentials.sign_request(req)
318319 try:
319320 response = urlopen(req)
Binary files /dev/null and b/winazurestorage.pyc differ