You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails because in result, the key is named "Example". I couldn't find documentation for this behavior and it is also surprising. If Example and example are given as keys then the result is the two values joined by ',' which makes sense, I suppose. I then tested "example_eg" and "ExampleEg" which generated two different keys, which further surprised. If you're going to modify the case to lower, why not use a method which has a way back to the original?
The text was updated successfully, but these errors were encountered:
How would you feel about implementing an aws.Canon(s string) function to be used when generating Metadata in order to generate it in the same format as would be returned by the methods? That way the programmer can use the names they're familiar with and leave it to the library to ensure that the metadata is comparable? Basically it would return textproto.CanonicalMIMEHeaderKey(s). The important piece would be using this function everywhere metadata keys are used in examples and documentation.
Hi @beiriannydd, thanks or your feedback on this topic. In order to maintain organized discussions on issues we encourage commenting on existing issues rather than re-initiating the discussion on a new issue. I am closing this issue as a duplicate, however your feedback has been included in the internal discussion for the implementation of this feature.
Please fill out the sections below to help us address your issue.
Version of AWS SDK for Go?
v1.15.38
Version of Go (
go version
)?1.10
What issue did you see?
Metadata returned from S3 objects has LeadingCapital conversion of keys
Steps to reproduce
Partial Example
This fails because in result, the key is named "Example". I couldn't find documentation for this behavior and it is also surprising. If Example and example are given as keys then the result is the two values joined by ',' which makes sense, I suppose. I then tested "example_eg" and "ExampleEg" which generated two different keys, which further surprised. If you're going to modify the case to lower, why not use a method which has a way back to the original?
The text was updated successfully, but these errors were encountered: