Use http-https instead of inline check