Skip to content

fix(fetch): do not follow redirect if scheme is not an HTTP(S) scheme #105

New issue

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

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

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MichaelDeBoey
Copy link
Contributor

@MichaelDeBoey MichaelDeBoey commented Apr 7, 2025

See @jacob-ebey's remix-run#62


#101 needs to be merged first

@MichaelDeBoey MichaelDeBoey requested review from Gozala, a team and Copilot April 7, 2025 12:07
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

@@ -235,6 +235,12 @@ export default class TestServer {
res.end();
}

if (p === '/redirect/301/file') {
Copy link
Preview

Copilot AI Apr 7, 2025

Choose a reason for hiding this comment

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

Consider using an 'else if' chain or an early return after processing a redirect to ensure that once a matching redirect case is found, no subsequent response is sent accidentally.

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@MichaelDeBoey MichaelDeBoey marked this pull request as draft April 7, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants