43263c78ad44a4b1ab143ddde74e27b47e0e42d5 chinhli Thu Jul 18 23:19:53 2013 -0700 Feature #8922 Remove hard coded "http" string from hgLogin-related code in hgLogin and hgSession diff --git src/inc/cheapcgi.h src/inc/cheapcgi.h index 2332bd1..eeaf905 100644 --- src/inc/cheapcgi.h +++ src/inc/cheapcgi.h @@ -77,30 +77,33 @@ /* Return name of script so libs can do context-sensitive stuff. */ char *cgiServerName(); /* Return name of server, better to use cgiServerNamePort() for actual URL construction */ char *cgiServerPort(); /* Return port number of server */ char *cgiServerNamePort(); /* Return name of server with port if different than 80 */ boolean cgiServerHttpsIsOn(); /* Return true if HTTPS is on */ +char *cgiAppendSForHttps(); +/* if running on https, add the letter s to the url protocol */ + char *cgiRemoteAddr(); /* Return IP address of client (or "unknown"). */ char *cgiUserAgent(); /* Return remote user agent (HTTP_USER_AGENT) or NULL if remote user agent is not known */ enum browserType /* How to look at a track. */ { btUnknown=0, // Not yet known btOpera=1, // Opera btIE=2, // MS Internet Explorer btFF=3, // Firefox btChrome=4, // Google Chrome btSafari=5, // Safari