Skip to content

v2.0.13

@fherryfherry fherryfherry tagged this 12 Mar 07:06
This change introduces a new `get_url_scheme()` function that centralizes
the logic for determining the HTTP/HTTPS scheme. The function handles
multiple sources including environment variables, server HTTPS flag,
and X-Forwarded-Proto header for proxy scenarios.

Both `base_url()` and `get_current_url()` now use this shared function,
ensuring consistent scheme detection across the codebase. The test has
been updated to verify the X-Forwarded-Proto header behavior.
Assets 2
Loading