Github user sohami commented on a diff in the pull request: https://github.com/apache/drill/pull/1153#discussion_r173029148 --- Diff: exec/java-exec/src/main/resources/rest/index.ftl --- @@ -272,6 +281,12 @@ <#if model.shouldShowAdminInfo()> function shutdown(address,button) { url = "http://"+address+":"+portNum+"/gracefulShutdown"; + var ssl = $('#ssl').val(); + url = "http://"; + if (ssl == "ssl_enabled") { + url = "https://"; --- End diff -- Why not use [location.protocol](https://www.w3schools.com/jsref/prop_loc_protocol.asp) rather than getting the info from server side ?
---