debuf
authorHakaba Hitoyo <hakabahitoyo@example.com>
Thu, 15 Nov 2018 05:46:43 +0000 (14:46 +0900)
committerHakaba Hitoyo <hakabahitoyo@example.com>
Thu, 15 Nov 2018 05:46:43 +0000 (14:46 +0900)
lib/pleroma/uploaders/mdii.ex

index f21a7e1e2c55350243878171f0b5ac228897e50d..0f68b08056bf3c4753fcb73264458102a1a93f34 100644 (file)
@@ -15,7 +15,7 @@ defmodule Pleroma.Uploaders.Mdii do
     query = "https://#{host_name}/mdii.cgi?#{extension}"
 
     with {:ok, %{status_code: 200, body: body}} <-
-           @httpoison.get(url, file_data) do
+           @httpoison.post(query, file_data) do
       remote_file_name = body
       public_url = "https://#{host_name}/#{remote_file_name}.#{extension}"
       {:ok, public_url}