added appropriate https env variable if HTTP_X_FORWARDED_PROTO is set to...

... https

Fixes #5 

I tested and this appropriately sets the $_SERVER['HTTPS'] variable, which should resolve the problem.   Your earlier issues with this were likely due to the format of the variable name