-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Prefer https:// for URLs throughout project #4805
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4805 +/- ##
=======================================
Coverage 66.77% 66.77%
=======================================
Files 15 15
Lines 1568 1568
=======================================
Hits 1047 1047
Misses 521 521
Continue to review full report at Codecov.
|
Did you verify all of these work? |
Hi Kenneth, I've done this same change on a number of different repositories now. I automated this change using the script: https://github.com/jdufresne/commit-messages/blob/master/scripts/checkhttp.py At a high level, this script does the following:
After running the script, I analyze the results locally using a visual diff tool (I like meld). I undo the changes for tests that look to be intentionally using an Many of the changed URLs share a domain. So after spot checking a few from these domains, we can be confident with the rest. So, in summary, a script has confirmed that all these changes result in Please feel free to re-run the script to verify or do additional manual testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a couple examples may be broken. I left comments on the two I had a concern about. Once those are addressed and we get this rebased onto master, I think this is set for merge.
@@ -25,8 +25,8 @@ Let's persist some cookies across requests:: | |||
|
|||
s = requests.Session() | |||
|
|||
s.get('http://httpbin.org/cookies/set/sessioncookie/123456789') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
@@ -69,7 +69,7 @@ If you want to manually add cookies to your session, use the | |||
Sessions can also be used as context managers:: | |||
|
|||
with requests.Session() as s: | |||
s.get('http://httpbin.org/cookies/set/sessioncookie/123456789') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here.
Thanks for catching those mistakes. Restored and fixed in the latest revision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I think this looks good. Thanks @jdufresne! ✨
No description provided.