Commit acd8b7e7f6bfebede0dd8383f6dac800255118d0

Stephen Moloney 2016-05-23T15:32:55

add tempurl change

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/auth/openstack/swift/cache.ex b/lib/auth/openstack/swift/cache.ex
index 00a4a35..615d066 100644
--- a/lib/auth/openstack/swift/cache.ex
+++ b/lib/auth/openstack/swift/cache.ex
@@ -118,7 +118,7 @@ defmodule ExOvh.Auth.Openstack.Swift.Cache do
       if temp_key != :nil do
         resp = Openstex.Swift.V1.Query.account_info(account) |> swift_client.request!()
         unless Map.has_key?(resp.headers, "X-Account-Meta-Temp-Url-Key") do
-          %Openstex.Openstack.Swift.Query{method: :post, uri: account, params: :nil}
+          %Openstex.Openstack.Swift.Query{method: :post, uri: account, params: %{}}
           |> swift_client.prepare_request()
           |> Openstex.Utils.put_http_headers(%{"X-Account-Meta-Temp-URL-Key" => temp_key})
           |> swift_client.request!()