From 6dc35e8fcbabd59db904526e2114223c64505b1d Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 13 Oct 2015 22:49:46 +0200 Subject: [PATCH] mod_http_upload: Fix function specification The mod_opt_type/1 function can return the list of option names. --- mod_http_upload/src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index ba58cbc..3fa87ab 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -139,7 +139,7 @@ stop(ServerHost) -> ok = supervisor:terminate_child(ejabberd_sup, Proc), ok = supervisor:delete_child(ejabberd_sup, Proc). --spec mod_opt_type(atom()) -> fun((term()) -> term()). +-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()]. mod_opt_type(host) -> fun iolist_to_binary/1;