]> granicus.if.org Git - ejabberd/commitdiff
Add Accept header to requests issued by rest.erl
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 25 Feb 2019 15:18:13 +0000 (16:18 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 25 Feb 2019 15:18:13 +0000 (16:18 +0100)
src/rest.erl

index 8aab0a5aeb27ccb3c7bf1bb6054fb57da12a819e..344d2bee54b2966a50dfd73fdbe501f3c7868de7 100644 (file)
@@ -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