Skip to content

Commit

Permalink
Merge pull request #1747 from jpf91/unix
Browse files Browse the repository at this point in the history
Properly set use_tls for unix sockets
  • Loading branch information
s-ludwig committed Sep 2, 2017
1 parent 2d850d9 commit 4d6a837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vibe/http/client.d
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ HTTPClientResponse requestHTTP(URL url, scope void delegate(scope HTTPClientRequ
else
{
version(UnixSocket)
use_tls = url.schema == "https";
else
use_tls = url.schema == "https" || url.schema == "https+unix";
else
use_tls = url.schema == "https";
}

auto cli = connectHTTP(url.getFilteredHost, url.port, use_tls, settings);
Expand Down

0 comments on commit 4d6a837

Please sign in to comment.