You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Andrew Gaul (JIRA)" <ji...@apache.org> on 2015/06/20 19:36:00 UTC
[jira] [Commented] (JCLOUDS-941) Add the Content-Type header for
filesystem blobstore
[ https://issues.apache.org/jira/browse/JCLOUDS-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14594701#comment-14594701 ]
Andrew Gaul commented on JCLOUDS-941:
-------------------------------------
This is relatively straightforward to fix. We could add an property, {{jclouds.filesystem.auto-detect-content-type}} which controls what happens in {{FilesystemStorageStrategyImpl.getBlob}} when {{contentType}} is null. We could even use the built-in {{Files.probeContentType}}:
http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#probeContentType%28java.nio.file.Path%29
[~ilopmar] would you like to submit a pull request?
> Add the Content-Type header for filesystem blobstore
> ----------------------------------------------------
>
> Key: JCLOUDS-941
> URL: https://issues.apache.org/jira/browse/JCLOUDS-941
> Project: jclouds
> Issue Type: Improvement
> Components: jclouds-blobstore
> Affects Versions: 2.0.0
> Environment: Linux
> Reporter: Iván López
>
> When exposing a filesystem blobstore the Content-Type header is not set. It should be added.
> This issue is related to https://github.com/andrewgaul/s3proxy/issues/63#issuecomment-113638475
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)