Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Fix: handle relative redirects that have url.scheme == '' #401

Merged
merged 6 commits into from
Aug 12, 2024

Conversation

ldeluigi
Copy link
Contributor

The raised error is a false positive: relative urls have scheme == '' which is different from http/https but still valid

Overview

This PR fixes a bug with relative redirects (in my case from http:localhost/something to /something/) that raise an Exception.

Related Issue

Fixes # (issue)

Demo

Optional. Screenshots, curl examples, etc.

Notes

Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.

Testing Instructions

  • How to test this PR
  • Prefer bulleted description
  • Start after checking out this branch
  • Include any setup required, such as bundling scripts, restarting services, etc.
  • Include test case, and expected output

…ing an error

The raised error is a false positive: relative urls have scheme == '' which is different from http/https but still valid
@ldeluigi ldeluigi requested a review from a team as a code owner August 10, 2024 09:21
Co-authored-by: Musale Martin <martinmshale@gmail.com>
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!
To ensure a swift release of this pull request, can you please:

  • add a changelog entry (path version, today's date, changed section)
  • update the version in the version constant

@ldeluigi
Copy link
Contributor Author

@microsoft-github-policy-service agree

baywet
baywet previously approved these changes Aug 12, 2024
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thank you for making the changes!

@baywet baywet enabled auto-merge August 12, 2024 16:23
baywet
baywet previously approved these changes Aug 12, 2024
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
baywet
baywet previously approved these changes Aug 12, 2024
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Copy link

@baywet baywet merged commit 2995db7 into microsoft:main Aug 12, 2024
11 checks passed
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.

3 participants