winazurestorageのフォーク
Révision | 4f4f5d65d3931fabdac537f085060fdf1f2a7fff (tree) |
---|---|
l'heure | 2011-06-09 09:02:11 |
Auteur | Steve Marx <Steve.Marx@micr...> |
Commiter | Steve Marx |
prevent urllib2 from defaulting to a bogus content type
@@ -314,6 +314,7 @@ class BlobStorage(Storage): | ||
314 | 314 | req = RequestWithMethod("PUT", "%s/%s/%s" % (self.get_base_url(), container_name, blob_name), data=data) |
315 | 315 | req.add_header("Content-Length", "%d" % len(data)) |
316 | 316 | if content_type is not None: req.add_header("Content-Type", content_type) |
317 | + else: req.add_header("Content-Type", "") | |
317 | 318 | self._credentials.sign_request(req) |
318 | 319 | try: |
319 | 320 | response = urlopen(req) |