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

Add support for s3 host id #1530

Merged
merged 2 commits into from
Jun 7, 2017
Merged

Add support for s3 host id #1530

merged 2 commits into from
Jun 7, 2017

Conversation

cjyclaire
Copy link
Contributor

@cjyclaire cjyclaire self-assigned this Jun 7, 2017
Copy link
Member

@awood45 awood45 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving the naming question up to you as you're driving the discussion. Otherwise looks good.

def call(context)
response = @handler.call(context)
h = context.http_response.headers
context[:host_id] = h['x-amz-id-2']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this field is S3-specific (especially in case other such fields come up for other services in the future), perhaps a name like :s3_host_id would be appropriate.

@cjyclaire
Copy link
Contributor Author

Updated with :s3_host_id, will merge once CI test finished

@cjyclaire cjyclaire merged commit 006b16b into master Jun 7, 2017
@cjyclaire cjyclaire deleted the s3-host-id branch June 7, 2017 20:58
awood45 pushed a commit that referenced this pull request Jun 29, 2017
* Add support for :s3_host_id
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