Skip to content
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 requests header #643

Merged
merged 5 commits into from
Jun 20, 2020

Conversation

matnad
Copy link
Collaborator

@matnad matnad commented Jun 19, 2020

What I did

Added a custom user agent to send with requests.
{"User-Agent": f"Brownie/{__version__} (Python/{python_version})"}
Example: Brownie/1.9.3 (Python/3.6.8 final)"

Related issue: #642

How I did it

Updated all requests.get statements to include the user agent header.

How to verify it

Try and load a contract on Kovan.

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

{"User-Agent": f"Brownie/{__version__} (Python/{python_version})"}
updated imports and setup.cfg
brownie/project/main.py Outdated Show resolved Hide resolved
@iamdefinitelyahuman iamdefinitelyahuman merged commit f9576c9 into eth-brownie:master Jun 20, 2020
@matnad matnad deleted the fix-requests-header branch December 28, 2020 12:16
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