Skip to content

fix: server params refactor broke format #130

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Apr 1, 2025
Merged

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 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants