I haven't seen the script myself but presumably its making a check on one of the CGI environment varibales to see if it running over a https connection.
A search for the text $ENV{HTTPS} or similar may lead you to the offending code snippet.
Regards,
Luke