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

Transfer Region in UserAgent-header #3099

Merged
merged 6 commits into from
Jul 3, 2020

Conversation

bblommers
Copy link
Collaborator

@bblommers bblommers commented Jun 27, 2020

Fixes #3098

Stores the region in the UserAgent-header in the following format:
User-Agent: Boto3/1.14.12 Python/2.7.15+ Linux/4.15.0-106-generic Botocore/1.17.12 region/us-west-2

Marked as draft, as I haven't accounted for the fact that the user might have provided their own extra user-agent information - just verifying the POC for now

Edit: Changed the PR to extend the UserAgent-header, in case the user has supplied their own Config object with a UserAgentExtra-option. Ready for review now

@bblommers bblommers marked this pull request as draft June 27, 2020 14:15
@coveralls
Copy link

coveralls commented Jun 27, 2020

Coverage Status

Coverage increased (+0.1%) to 94.394% when pulling 8ff32bf on bblommers:region-stored-in-user-agent into 7381346 on spulec:master.

@bblommers bblommers marked this pull request as ready for review July 1, 2020 12:11
@spulec spulec merged commit 385c78a into getmoto:master Jul 3, 2020
@bblommers bblommers deleted the region-stored-in-user-agent branch July 3, 2020 05:31
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.

Meta - Builds are failing in Server Mode
3 participants