Skip to content

Commit

Permalink
use request.env to pluck out http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Dec 19, 2012
1 parent f73fe0e commit fa333f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/icemelt/application.rb
Expand Up @@ -79,7 +79,7 @@ def vault vault_name
status 201

options = {}
options[:archive_description] = request['x-amz-archive-description']
options[:archive_description] = request.env['HTTP_X_AMZ_ARCHIVE_DESCRIPTION']

a = Archive.create(vault(params[:vault_name]), options)
a.content = request.body.read
Expand All @@ -98,7 +98,8 @@ def vault vault_name
status 201

options = {}
options[:archive_description] = request['x-amz-archive-description']
puts request.inspect
options[:archive_description] = request.env['HTTP_X_AMZ_ARCHIVE_DESCRIPTION']

a = Archive.create(vault(params[:vault_name]), options)
a.prepare_for_multipart_upload!
Expand Down

0 comments on commit fa333f0

Please sign in to comment.