-
Notifications
You must be signed in to change notification settings - Fork 69
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
Adds a User-agent header to curl module requests #219
Adds a User-agent header to curl module requests #219
Conversation
The header will be of the form: peru/{version} Python-urllib/{version} Fixes buildinspace#218
and use a %-format instead of an f-format to maintain compatibility with Python 3.5 since f-format came in 3.6.
This sets the stage for more request modifications.
When working on buildinspace#219, I found it repetitive to use history to invoke commands when I could just type "make" like I do in many other projects, including my Python projects. I extracted therefrom this minimalistic Makefile and added references to it in CONTRIBUTING. I also cleaned up some markup in CONTRIBUTING.
It looks like the test failures here are something that changed in Git 2.34. I can repro them on my local machine, but they go away with I downgrade to Git 2.33. Will debug more tomorrow. |
I ended up bisecting Git itself to figure out what they heck they changed. Turns out it's this: git/git@491a757. A relatively obscure detail of how |
When working on #219, I found it repetitive to use history to invoke commands when I could just type "make" like I do in many other projects, including my Python projects. I extracted therefrom this minimalistic Makefile and added references to it in CONTRIBUTING. I also cleaned up some markup in CONTRIBUTING.
I'll move discussion of the test failure into a new issue: #221 |
The header will be of the form:
Fixes #218