Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Feb 18, 2019

Updates the REST protocol marshaler to trip leading and trailing space from header keys and values before setting the HTTP request header.

Fixes a bug when using S3 metadata where metadata values with leading spaces would trigger request signature validation errors when the request is received by the service.

Fix #2448

@jasdel jasdel self-assigned this Feb 18, 2019
@jasdel jasdel force-pushed the fixup/RESTLeadingSpaceHeaders branch from cabd873 to d9dd43f Compare February 18, 2019 22:28
@jasdel jasdel merged commit 63b8141 into aws:master Feb 26, 2019
@jasdel jasdel deleted the fixup/RESTLeadingSpaceHeaders branch February 26, 2019 21:11
@aws-sdk-go-automation aws-sdk-go-automation mentioned this pull request Feb 28, 2019
jasdel added a commit to jasdel/aws-sdk-go-v2 that referenced this pull request Apr 9, 2019
Updates the REST protocol marshaler to trip leading and trailing space
from header keys and values before setting the HTTP request header.

Fixes a bug when using S3 metadata where metadata values with leading
spaces would trigger request signature validation errors when the
request is received by the service.

V2 SDK port of: aws/aws-sdk-go#2460
jasdel added a commit to aws/aws-sdk-go-v2 that referenced this pull request Apr 10, 2019
Updates the REST protocol marshaler to trip leading and trailing space
from header keys and values before setting the HTTP request header.

Fixes a bug when using S3 metadata where metadata values with leading
spaces would trigger request signature validation errors when the
request is received by the service.

V2 SDK port of: aws/aws-sdk-go#2460
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant