mod_http_upload: Apply cosmetic changes
This commit is contained in:
parent
13e8c857ce
commit
374c1b6dfc
|
@ -227,8 +227,7 @@ init({ServerHost, Opts}) ->
|
|||
ServiceURL = gen_mod:get_opt(service_url, Opts,
|
||||
fun(<<"http://", _/binary>> = URL) -> URL;
|
||||
(<<"https://", _/binary>> = URL) -> URL
|
||||
end,
|
||||
undefined),
|
||||
end),
|
||||
case ServiceURL of
|
||||
undefined ->
|
||||
ok;
|
||||
|
@ -244,7 +243,7 @@ init({ServerHost, Opts}) ->
|
|||
{ok, #state{server_host = ServerHost, host = Host, name = Name,
|
||||
access = Access, max_size = MaxSize,
|
||||
secret_length = SecretLength, jid_in_url = JIDinURL,
|
||||
docroot = expand_home(DocRoot),
|
||||
docroot = expand_home(str:strip(DocRoot, right, $/)),
|
||||
put_url = expand_host(str:strip(PutURL, right, $/), ServerHost),
|
||||
get_url = expand_host(str:strip(GetURL, right, $/), ServerHost),
|
||||
service_url = expand_host(ServiceURL, ServerHost)}}.
|
||||
|
|
Loading…
Reference in New Issue