-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Fix: Windows drive paths misidentified as URLs #1460
Conversation
Good job! Just a minor ask before we can merge this. |
I made an adjustment to be more explicit. Relying on the behavior of RequestBuilder hides the intent a bit, so instead I explicitly say that I'm rejecting Urls that don't have an http (or https) scheme. I also adjusted the last part of the function to handle Windows behavior better. The function originally assumed that missing a scheme could have been a mistake and adds https, but on Windows this can never happen because the separators in Windows filepaths are not valid for Urls. Finally, I added some Windows-only tests to validate that the behavior is correct. |
After the changes, though, some tests are failing that don't fail on Windows. I will need to investigate to understand the errors. They're related to something called "wayback", which I have never heard of and so I have no idea what the behavior is supposed to be. |
Oh, the I suggest to ignore these particular errors for the moment. Perhaps we can even disable them entirely. |
Yup, looks like you're right. I forced a test rerun and it passed. |
9a9b45a
to
5762b18
Compare
I cleaned up the PR a bit. I think it's ready to be shipped. |
This is now released! |
Attempts to fix this issue.
This has resulted in some failing tests on Linux. Will revise.
Edit:
Fixed Linux tests. Let me know if you have any suggestions for improvement.