Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Made HTTPS detection a bit better. #160

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from

Commits on Mar 30, 2019

  1. Made HTTPS detection a bit better.

    Introduced a new private method `isHttps` that checks if the request was sent over HTTPS or not.
    To do so, it checks if one of the following is true:
      - URI scheme is 'https',
      - a 'X-Forwarded-Proto' header is present and its value is 'https' (useful when running behind a load balancer).
    Frzk committed Mar 30, 2019
    Configuration menu
    Copy the full SHA
    7832cf3 View commit details
    Browse the repository at this point in the history
  2. Fixed a typo (non breaking space).

    This made the tests in Travis-CI fail.
    Frzk committed Mar 30, 2019
    Configuration menu
    Copy the full SHA
    4bcc69d View commit details
    Browse the repository at this point in the history