http: fix TLS server name indication
authorWilliam Pitcock <nenolod@dereferenced.org>
Fri, 24 Aug 2018 20:01:13 +0000 (20:01 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 24 Aug 2018 20:04:50 +0000 (20:04 +0000)
commit290798b8215c2f61ad6e6ccb5463ce599486f2a5
tree72ef646c15a2ff01ab23ef986b3d7d748988012a
parentbe7a6db1f54a033afb7cb564f9cf0c9bdafe5055
http: fix TLS server name indication

by default, hackney only sent TLS server name indication if TLS was locked
to TLS 1.2.

since there are many instances out there not speaking TLS 1.2, it is not
acceptable to lock SNI to TLS 1.2.

closes #261
lib/pleroma/http/http.ex