[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
|
if @acl
|
||||||
options['x-amz-acl'] ||= @acl
|
options['x-amz-acl'] ||= @acl
|
||||||
end
|
end
|
||||||
|
if content_type
|
||||||
|
options['Content-Type'] = content_type
|
||||||
|
end
|
||||||
data = connection.put_object(directory.key, @key, @body, options)
|
data = connection.put_object(directory.key, @key, @body, options)
|
||||||
@etag = data.headers['ETag']
|
@etag = data.headers['ETag']
|
||||||
true
|
true
|
||||||
|
|
|
@ -79,6 +79,9 @@ module Fog
|
||||||
if @acl
|
if @acl
|
||||||
options['x-amz-acl'] ||= @acl
|
options['x-amz-acl'] ||= @acl
|
||||||
end
|
end
|
||||||
|
if content_type
|
||||||
|
options['Content-Type'] = content_type
|
||||||
|
end
|
||||||
data = connection.put_object(directory.key, @key, @body, options)
|
data = connection.put_object(directory.key, @key, @body, options)
|
||||||
@etag = data.headers['ETag']
|
@etag = data.headers['ETag']
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue