mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
add connection: close to proxy request
This commit is contained in:
parent
7ee4934e8f
commit
03301168c7
1 changed files with 2 additions and 2 deletions
|
@ -19,10 +19,10 @@ defmodule Philomena.Http do
|
||||||
defp add_host(headers, url) do
|
defp add_host(headers, url) do
|
||||||
%{host: host} = URI.parse(url)
|
%{host: host} = URI.parse(url)
|
||||||
|
|
||||||
Keyword.merge(["Host": host], headers)
|
Keyword.merge(["Host": host, "Connection": "close"], headers)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp proxy_host do
|
defp proxy_host do
|
||||||
Application.get_env(:philomena, :proxy_host)
|
Application.get_env(:philomena, :proxy_host)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue