Skip to content

Commit

Permalink
Include header x-amz-security-token in bucket-location request
Browse files Browse the repository at this point in the history
  • Loading branch information
wsgac committed Jan 27, 2017
1 parent 376d08b commit 4f19c7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interface.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ constraint."
(let* ((request (make-instance 'request
:method :get
:sub-resource "location"
:extra-http-headers
`(,(when (security-token *credentials*)
(cons "x-amz-security-token"
(security-token *credentials*))))
:bucket bucket))
(response (submit-request request))
(location (location response)))
Expand Down

0 comments on commit 4f19c7e

Please sign in to comment.