From: Paweł Chmielowski Date: Mon, 25 Feb 2019 15:18:13 +0000 (+0100) Subject: Add Accept header to requests issued by rest.erl X-Git-Tag: 19.02~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d04a2454cceffcbd4335e6f93ea33dbe9a17e453;p=ejabberd Add Accept header to requests issued by rest.erl --- diff --git a/src/rest.erl b/src/rest.erl index 8aab0a5ae..344d2bee5 100644 --- a/src/rest.erl +++ b/src/rest.erl @@ -84,6 +84,7 @@ request(Server, Method, Path, Params, Mime, Data) -> Opts = [{connect_timeout, ?CONNECT_TIMEOUT}, {timeout, ?HTTP_TIMEOUT}], Hdrs = [{"connection", "keep-alive"}, + {"Accept", "application/json"}, {"User-Agent", "ejabberd"}] ++ custom_headers(Server), Req = if