mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
convert content lengths to integers
This commit is contained in:
parent
847d2f28cd
commit
13b0d4452a
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ module Fog
|
|||
attribute :cache_control, :aliases => 'Cache-Control'
|
||||
attribute :content_disposition, :aliases => 'Content-Disposition'
|
||||
attribute :content_encoding, :aliases => 'Content-Encoding'
|
||||
attribute :content_length, :aliases => ['Content-Length', 'Size']
|
||||
attribute :content_length, :aliases => ['Content-Length', 'Size'], :type => :integer
|
||||
attribute :content_md5, :aliases => 'Content-MD5'
|
||||
attribute :content_type, :aliases => 'Content-Type'
|
||||
attribute :etag, :aliases => ['Etag', 'ETag']
|
||||
|
|
|
@ -14,7 +14,7 @@ module Fog
|
|||
attribute :cache_control, :aliases => 'Cache-Control'
|
||||
attribute :content_disposition, :aliases => 'Content-Disposition'
|
||||
attribute :content_encoding, :aliases => 'Content-Encoding'
|
||||
attribute :content_length, :aliases => ['Content-Length', 'Size']
|
||||
attribute :content_length, :aliases => ['Content-Length', 'Size'], :type => :integer
|
||||
attribute :content_md5, :aliases => 'Content-MD5'
|
||||
attribute :content_type, :aliases => 'Content-Type'
|
||||
attribute :etag, :aliases => ['Etag', 'ETag']
|
||||
|
|
|
@ -8,7 +8,7 @@ module Fog
|
|||
|
||||
identity :key, :aliases => 'Key'
|
||||
|
||||
attribute :content_length, :aliases => 'Content-Length'
|
||||
attribute :content_length, :aliases => 'Content-Length', :type => :integer
|
||||
# attribute :content_type, :aliases => 'Content-Type'
|
||||
attribute :last_modified, :aliases => 'Last-Modified'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue