aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rest.erl1
1 files changed, 1 insertions, 0 deletions
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