core icon indicating copy to clipboard operation
core copied to clipboard

Uri::current(), Uri::main() says http instead of https

Open bproctor opened this issue 15 years ago • 4 comments

Uri::current() and Uri::main() both return http:// when visiting called from an https:// site.

bproctor avatar Aug 31 '11 02:08 bproctor

a couple of things I should have mentioned. I'm running nginx and in my config, base_url = null. I'm looking into what might be causing this...

bproctor avatar Aug 31 '11 02:08 bproctor

This is how it is detected: https://github.com/fuel/core/blob/1.1%2Fdevelop/classes/input.php#L191 - might help you figure out why it fails for you.

jschreuder avatar Aug 31 '11 03:08 jschreuder

Ah yes, nginx doesn't set $_SERVER['HTTPS'] by default. Thank you.

bproctor avatar Aug 31 '11 03:08 bproctor

Closing this as you have a pull-request on the same issue.

jschreuder avatar Aug 31 '11 11:08 jschreuder