Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Updating deprecated method and some cleanup. #250

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

weerd
Copy link
Contributor

@weerd weerd commented Aug 12, 2020

What's this PR do?

This pull request updates the ForceHttps.php middleware to remove the deprecated League\Uri\Schemes\Http class and use League\Uri\Http instead.

After the recent Laravel upgrade to 5.6, our Aurora Dev & QA instances have been borked and running into a redirect loop of sorts. We suspect it's due to the upgrades leading to the full deprecation of the above class and associated method we utilized. Updating to the new class should solve the issue. 🤞

Also does a little cleanup to ensure it applies the middleware to all non-local instances, and adds a debug logging statement for help in future troubleshooting.

How should this be reviewed?

👀

Relevant tickets

References Pivotal #172383668.

Checklist

  • This PR has been added to the relevant Pivotal card.
  • Added appropriate feature/unit tests.

@weerd weerd requested a review from a team as a code owner August 12, 2020 15:58
@weerd weerd requested review from katiecrane and DFurnes and removed request for a team August 12, 2020 15:58
@weerd weerd merged commit 87be5bc into master Aug 12, 2020
@weerd weerd deleted the force-https-middleware-bug branch August 12, 2020 16:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants