• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

winazurestorageのフォーク


Commit MetaInfo

Révision4f4f5d65d3931fabdac537f085060fdf1f2a7fff (tree)
l'heure2011-06-09 09:02:11
AuteurSteve Marx <Steve.Marx@micr...>
CommiterSteve Marx

Message de Log

prevent urllib2 from defaulting to a bogus content type

Change Summary

Modification

--- 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