aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/http/web_push.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/http/web_push.ex')
-rw-r--r--[-rwxr-xr-x]lib/pleroma/http/web_push.ex6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/http/web_push.ex b/lib/pleroma/http/web_push.ex
index ca399b6..888079c 100755..100644
--- a/lib/pleroma/http/web_push.ex
+++ b/lib/pleroma/http/web_push.ex
@@ -6,7 +6,11 @@ defmodule Pleroma.HTTP.WebPush do
@moduledoc false
def post(url, payload, headers, options \\ []) do
- list_headers = Map.to_list(headers)
+ list_headers =
+ headers
+ |> Map.to_list()
+ |> Kernel.++([{"content-type", "octet-stream"}])
+
Pleroma.HTTP.post(url, payload, list_headers, options)
end
end