* VRFS-2680 - try out audiomixer/quick mixer without secure PUT
This commit is contained in:
parent
4709622546
commit
64a64e99bb
|
|
@ -321,9 +321,9 @@ module JamRuby
|
|||
def sign_put(expiration_time = 3600 * 24, type='ogg')
|
||||
type ||= 'ogg'
|
||||
if type == 'ogg'
|
||||
s3_manager.sign_url(self[:ogg_url], {:expires => expiration_time, :content_type => 'audio/ogg', :secure => true}, :put)
|
||||
s3_manager.sign_url(self[:ogg_url], {:expires => expiration_time, :content_type => 'audio/ogg', :secure => false}, :put)
|
||||
else
|
||||
s3_manager.sign_url(self[:mp3_url], {:expires => expiration_time, :content_type => 'audio/mpeg', :secure => true}, :put)
|
||||
s3_manager.sign_url(self[:mp3_url], {:expires => expiration_time, :content_type => 'audio/mpeg', :secure => false}, :put)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -232,12 +232,13 @@ module JamRuby
|
|||
end
|
||||
end
|
||||
|
||||
# this is not 'secure' because, in testing, the PUT failed often in Ruby. should investigate more.
|
||||
def sign_put(expiration_time = 3600 * 24, type='ogg')
|
||||
type ||= 'ogg'
|
||||
if type == 'ogg'
|
||||
s3_manager.sign_url(self[:ogg_url], {:expires => expiration_time, :content_type => 'audio/ogg', :secure => true}, :put)
|
||||
s3_manager.sign_url(self[:ogg_url], {:expires => expiration_time, :content_type => 'audio/ogg', :secure => false}, :put)
|
||||
else
|
||||
s3_manager.sign_url(self[:mp3_url], {:expires => expiration_time, :content_type => 'audio/mpeg', :secure => true}, :put)
|
||||
s3_manager.sign_url(self[:mp3_url], {:expires => expiration_time, :content_type => 'audio/mpeg', :secure => false}, :put)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue