Determining SSL state

Is there ANY way to determine if a user is in SSL other than to check
the request headers? My host is currently using Apache 1.x to proxy
requests to Pound/Mongrel, but can't pass the X header all the way so I
can't use the typical @request.env["HTTPS"]

This is one of my last road blocks to launching because it's keeping me
from setting up the proper https link encoding inside rails.



Which effectively checks the HTTPS and HTTP_X_FORWARDED_PROTO headers.