Query fingerprint does not use TLS SNI (server name indication)
Created originally on Bitbucket by psuter (Peter Suter)
Query fingerprint can return the wrong fingerprint because it does not use TLS SNI.
Python 2.7.9 supports SNI. Mercurial 3.3 supports SNI. (issue 3090)
For example when a server hosts both hg.example.com and www.example.com, query fingerprint without SNI may get the fingerprint of www.example.com. But then mercurial can not connect as it verifies the fingerprint of hg.example.com via SNI.