aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/http/web_push.ex
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-10-01 13:32:11 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-10-01 13:32:11 +0300
commitcbdaabad345914e7424e614032056ff86e21142f (patch)
tree5b60cabc2c4c41ed8c956aa2202cf0ee71706caa /lib/pleroma/http/web_push.ex
parent34029ffb90175e9beb43bc20b76a8093971d8ca6 (diff)
downloadpleroma-cbdaabad345914e7424e614032056ff86e21142f.tar.gz
web push http_client fix
Diffstat (limited to 'lib/pleroma/http/web_push.ex')
-rw-r--r--lib/pleroma/http/web_push.ex12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/pleroma/http/web_push.ex b/lib/pleroma/http/web_push.ex
new file mode 100644
index 000000000..78148a12e
--- /dev/null
+++ b/lib/pleroma/http/web_push.ex
@@ -0,0 +1,12 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.HTTP.WebPush do
+ @moduledoc false
+
+ def post(url, payload, headers) do
+ list_headers = Map.to_list(headers)
+ Pleroma.HTTP.post(url, payload, list_headers)
+ end
+end