Skip to content

Conversation

SamMousa
Copy link
Collaborator

@SamMousa SamMousa commented Apr 1, 2025

No description provided.

@SamMousa SamMousa requested a review from TavoNiievez April 1, 2025 12:50
Copy link
Member

@TavoNiievez TavoNiievez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the call to array_merge in the previous code was not properly refactored.

        $_SERVER = array_merge($_SERVER, [
            'SCRIPT_FILENAME' => $entryFile,
            'SCRIPT_NAME' => $entryScript,
            'SERVER_NAME' => parse_url($entryUrl, PHP_URL_HOST),
            'SERVER_PORT' => parse_url($entryUrl, PHP_URL_PORT) ?: '80',
            'HTTPS' => parse_url($entryUrl, PHP_URL_SCHEME) === 'https'
        ]);

@SamMousa
Copy link
Collaborator Author

SamMousa commented Apr 1, 2025

Yeah, this PR fixes that! Can you merge it after you sanity check? <3

Edit: I self-reviewed this.

@SamMousa SamMousa merged commit 956c3bb into master Apr 1, 2025
2 checks passed
@SamMousa SamMousa deleted the fix-server-params branch April 1, 2025 13:17
Copy link

github-actions bot commented Apr 1, 2025

🎉 This PR is included in version 2.0.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants