diff options
Diffstat (limited to 'src/mod_http_upload.erl')
-rw-r--r-- | src/mod_http_upload.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 51d7761ab..cf4ab0d1e 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -711,8 +711,8 @@ get_proc_name(ServerHost, ModuleName) -> -spec get_proc_name(binary(), atom(), binary()) -> atom(). get_proc_name(ServerHost, ModuleName, PutURL) -> %% Once we depend on OTP >= 20.0, we can use binaries with http_uri. - {ok, {_Scheme, _UserInfo, Host0, _Port, Path0, _Query}} = - http_uri:parse(binary_to_list(expand_host(PutURL, ServerHost))), + {ok, _Scheme, Host0, _Port, Path0} = + misc:uri_parse(expand_host(PutURL, ServerHost)), Host = jid:nameprep(iolist_to_binary(Host0)), Path = str:strip(iolist_to_binary(Path0), right, $/), ProcPrefix = <<Host/binary, Path/binary>>, @@ -934,7 +934,7 @@ make_query_string(Slot, Size, #state{external_secret = Key}) when Key /= <<>> -> UrlPath = str:join(Slot, <<$/>>), SizeStr = integer_to_binary(Size), Data = <<UrlPath/binary, " ", SizeStr/binary>>, - HMAC = str:to_hexlist(crypto:hmac(sha256, Key, Data)), + HMAC = str:to_hexlist(misc:crypto_hmac(sha256, Key, Data)), <<"?v=", HMAC/binary>>; make_query_string(_Slot, _Size, _State) -> <<>>. |