Fix insecure HTTP deprecation warning