From 4e49919d167e67f7f40d88baa0589fffe51fb21b Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Mon, 25 Dec 2017 08:41:51 +0300 Subject: [PATCH] Revert "Don't set twice" This reverts commit 6dca89f61689bf9d8ecf6e7a0ede66a4a5395e84. --- src/ejabberd_http.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl index da7fa2c69..9bf7efcfe 100644 --- a/src/ejabberd_http.erl +++ b/src/ejabberd_http.erl @@ -891,8 +891,8 @@ normalize_path([Part | Path], Norm) -> -spec get_certfile([proplists:property()]) -> binary() | undefined. get_certfile(Opts) -> case lists:keyfind(certfile, 1, Opts) of - {_, _CertFile} -> - undefined; + {_, CertFile} -> + CertFile; false -> case ejabberd_pkix:get_certfile(?MYNAME) of {ok, CertFile} ->