mod_http_upload: Update function specification

The handle_call/3 function now responds to some requests.
This commit is contained in:
Holger Weiss 2015-10-01 00:57:41 +02:00
parent f58db83523
commit a1fe316565
1 changed files with 5 additions and 1 deletions

View File

@ -265,7 +265,11 @@ init({ServerHost, Opts}) ->
get_url = expand_host(str:strip(GetURL, right, $/), ServerHost),
service_url = ServiceURL}}.
-spec handle_call(_, {pid(), _}, state()) -> {noreply, state()}.
-spec handle_call(_, {pid(), _}, state())
-> {reply, {ok, pos_integer(), binary(),
pos_integer() | undefined,
pos_integer() | undefined}, state()} |
{reply, {error, binary()}, state()} | {noreply, state()}.
handle_call({use_slot, Slot}, _From, #state{file_mode = FileMode,
dir_mode = DirMode,