removed the http/https inline if

this check will now work with load balancers that do https offloading