logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

web_push.ex (446B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.HTTP.WebPush do
  5. @moduledoc false
  6. def post(url, payload, headers, options \\ []) do
  7. list_headers =
  8. headers
  9. |> Map.to_list()
  10. |> Kernel.++([{"content-type", "octet-stream"}])
  11. Pleroma.HTTP.post(url, payload, list_headers, options)
  12. end
  13. end