> @@ -45,7 +47,14 @@ public SwiftObject apply(Blob from) {
>           return null;
>        SwiftObject object = 
> objectProvider.create(blob2ObjectMd.apply(from.getMetadata()));
>        object.setPayload(checkNotNull(from.getPayload(), "payload: " + from));
> -      object.setAllHeaders(from.getAllHeaders());
> +
> +      Multimap<String, String> headers = from.getAllHeaders();
> +      // let Swift determine the content type...
> +      if 
> (from.getMetadata().getContentMetadata().getContentType().equals("application/unknown"))
>  {

Agreed. Good catch on the case sensitivity and the potential null! 

I believe that we should move *all* String representations of MIME types to the 
Guava 
[MediaType](http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/net/MediaType.html)
 class. ;)

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

Reply via email to