Permalink
Browse files

On my Win 7 box, the CGI.HTTPS value is "off" or "on" so the code was…

… incorrectly trying to connect to my non-HTTPS server over HTTPS. This fixed it for me. You might want to check it's still OK on OSX.
  • Loading branch information...
1 parent 72d3051 commit 32da86b357ff1eb066fcb907bc61e44ed701d541 @ciaranarcher ciaranarcher committed Jul 22, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 handlers/Application.cfc
@@ -1,8 +1,9 @@
-<cfcomponent>
+<cfcomponent>
<cfsetting showdebugoutput="false">
<cffunction name="onRequestStart">
+
<cfscript>
- if ( len( cgi.HTTPS ) ) {
+ if ( len( cgi.HTTPS ) && cgi.HTTPS != "off" ) {
request.ideUrl = "https://" & cgi.HTTP_HOST & ":" & cgi.SERVER_PORT_SECURE;
} else {
request.ideUrl = "http://" & cgi.HTTP_HOST & ":" & cgi.SERVER_PORT;

0 comments on commit 32da86b

Please sign in to comment.