Fix HTTP protocol used over HTTPS port