Skip to content

Commit

Permalink
Remove URLDecodedKey from S3Object
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach committed Nov 11, 2020
1 parent f24acb2 commit e6ca184
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 5 additions & 6 deletions events/s3.go
Expand Up @@ -46,12 +46,11 @@ type S3Bucket struct {
}

type S3Object struct {
Key string `json:"key"`
Size int64 `json:"size,omitempty"`
URLDecodedKey string `json:"urlDecodedKey"`
VersionID string `json:"versionId"`
ETag string `json:"eTag"`
Sequencer string `json:"sequencer"`
Key string `json:"key"`
Size int64 `json:"size,omitempty"`
VersionID string `json:"versionId"`
ETag string `json:"eTag"`
Sequencer string `json:"sequencer"`
}

type S3TestEvent struct {
Expand Down
3 changes: 1 addition & 2 deletions events/testdata/s3-event.json
Expand Up @@ -12,7 +12,7 @@
"requestParameters": {
"sourceIPAddress": "127.0.0.1"
},
"responseElements": {
"responseElements": {
"x-amz-request-id": "C3D13FE58DE4C810",
"x-amz-id-2": "FMyUVURIY8/IgAtTv8xRjskZQpcIZ9KG4V5Wp6S7S/JRWeUWerMUE5JgHvANOjpD"
},
Expand All @@ -29,7 +29,6 @@
"object": {
"key": "HappyFace.jpg",
"size": 1024,
"urlDecodedKey": "HappyFace.jpg",
"versionId": "version",
"eTag": "d41d8cd98f00b204e9800998ecf8427e",
"sequencer": "Happy Sequencer"
Expand Down

0 comments on commit e6ca184

Please sign in to comment.