Fix issue in a botchy way
This commit is contained in:
@ -9,13 +9,18 @@ defmodule Outlook.Hyphenation do
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
response_raw = HTTPoison.request!(
|
case HTTPoison.request(
|
||||||
:post,
|
:post,
|
||||||
System.get_env("HYPH_URL"),
|
System.get_env("HYPH_URL"),
|
||||||
form,
|
form,
|
||||||
get_multipart_headers()
|
get_multipart_headers()
|
||||||
)
|
) do
|
||||||
response_raw.body
|
{:ok, %HTTPoison.Response{status_code: 200, body: body}} ->
|
||||||
|
body
|
||||||
|
_ ->
|
||||||
|
# this is poor but for now better than loss of all work
|
||||||
|
html
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp get_multipart_form fields do
|
defp get_multipart_form fields do
|
||||||
|
|||||||
Reference in New Issue
Block a user