You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Everett Toews <no...@github.com> on 2013/07/28 16:59:06 UTC

[jclouds-examples] Send blank conent type so Cloud Files can determine the content type. (#12)

You can merge this Pull Request by running:

  git pull https://github.com/rackerlabs/jclouds-examples content-type-fix

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds-examples/pull/12

-- Commit Summary --

  * Send blank conent type so Cloud Files can determine the content type.

-- File Changes --

    M rackspace/src/main/java/org/jclouds/examples/rackspace/cloudfiles/UploadDirectoryToCDN.java (1)

-- Patch Links --

https://github.com/jclouds/jclouds-examples/pull/12.patch
https://github.com/jclouds/jclouds-examples/pull/12.diff


Re: [jclouds-examples] Send blank conent type so Cloud Files can determine the content type. (#12)

Posted by Everett Toews <no...@github.com>.
Merged.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/12#issuecomment-21684962

Re: [jclouds-examples] Send blank conent type so Cloud Files can determine the content type. (#12)

Posted by Everett Toews <no...@github.com>.
Closed #12.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/12

Re: [jclouds-examples] Send blank conent type so Cloud Files can determine the content type. (#12)

Posted by Andrew Phillips <no...@github.com>.
+1

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/12#issuecomment-21684834

Re: [jclouds-examples] Send blank conent type so Cloud Files can determine the content type. (#12)

Posted by Andrew Phillips <no...@github.com>.
> @@ -199,6 +199,7 @@ protected BlobUploader(String container, BlobDetail toBeUploadedBlobDetail) {
>        public BlobDetail call() throws Exception {
>           Blob blob = storage.blobBuilder(toBeUploadedBlobDetail.getRemoteBlobName())
>                 .payload(toBeUploadedBlobDetail.getLocalFile())
> +               .contentType("") // allows Cloud Files to determine the content type

Ah, whoops, sorry!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/12/files#r5440178