add connection: close to proxy request

This commit is contained in:
byte[] 2019-12-16 15:34:21 -05:00
parent 7ee4934e8f
commit 03301168c7

View file

@ -19,10 +19,10 @@ defmodule Philomena.Http do
defp add_host(headers, url) do
%{host: host} = URI.parse(url)
Keyword.merge(["Host": host], headers)
Keyword.merge(["Host": host, "Connection": "close"], headers)
end
defp proxy_host do
Application.get_env(:philomena, :proxy_host)
end
end
end