Issue 68: fixes issue with wrong http scheme when in SSL.