mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-06 21:37:17 +02:00
Set HTTP/1.0 so github accepts the request (#1157)
This commit is contained in:
parent
95ff94b054
commit
eeeb190680
|
@ -271,7 +271,7 @@ geturl(Url, Hdrs, UsrOpts) ->
|
||||||
[U, Pass] -> [{proxy_user, U}, {proxy_password, Pass}];
|
[U, Pass] -> [{proxy_user, U}, {proxy_password, Pass}];
|
||||||
_ -> []
|
_ -> []
|
||||||
end,
|
end,
|
||||||
case httpc:request(get, {Url, Hdrs}, Host++User++UsrOpts, []) of
|
case httpc:request(get, {Url, Hdrs}, Host++User++UsrOpts++[{version, "HTTP/1.0"}], []) of
|
||||||
{ok, {{_, 200, _}, Headers, Response}} ->
|
{ok, {{_, 200, _}, Headers, Response}} ->
|
||||||
{ok, Headers, Response};
|
{ok, Headers, Response};
|
||||||
{ok, {{_, Code, _}, _Headers, Response}} ->
|
{ok, {{_, Code, _}, _Headers, Response}} ->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user