[aws|storage] pass content_type through model correctly
This commit is contained in:
parent
f0fd80b52b
commit
a31c1902f1
|
@ -76,6 +76,9 @@ module Fog
|
|||
if @acl
|
||||
options['x-amz-acl'] ||= @acl
|
||||
end
|
||||
if content_type
|
||||
options['Content-Type'] = content_type
|
||||
end
|
||||
data = connection.put_object(directory.key, @key, @body, options)
|
||||
@etag = data.headers['ETag']
|
||||
true
|
||||
|
|
|
@ -79,6 +79,9 @@ module Fog
|
|||
if @acl
|
||||
options['x-amz-acl'] ||= @acl
|
||||
end
|
||||
if content_type
|
||||
options['Content-Type'] = content_type
|
||||
end
|
||||
data = connection.put_object(directory.key, @key, @body, options)
|
||||
@etag = data.headers['ETag']
|
||||
true
|
||||
|
|
Loading…
Reference in New Issue