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

private/protocol/rest: Use RawPath instead of Opaque #993

Merged
merged 4 commits into from
Dec 13, 2016

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Dec 12, 2016

It was discovered the bug golang/go#16847 prevents usage of AWS services using HTTP 2, such as AWS X-Ray with the AWS SDK for Go because Go 1.6.2 - 1.7.4 does not correctly build HTTP2 request when the URL uses Opaque to set the escaped version of the URL path. This has been fixed int he Go 1.8 branch, but this change will ensure users using the current version of Go will be able to connect to AWS services using HTTP2.

With this change the SDK will no longer with with the unsupported Go version 1.4.

@@ -18,5 +19,7 @@ func TestBuildCorrectURI(t *testing.T) {

req.Build()

fmt.Println(req.HTTPRequest.URL.Path, req.HTTPRequest.URL.RawPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

Print?

@xibz
Copy link
Contributor

xibz commented Dec 12, 2016

looks good minus the one print

@xibz
Copy link
Contributor

xibz commented Dec 12, 2016

:shipit:

@jasdel jasdel merged commit 0cec6f3 into aws:master Dec 13, 2016
@jasdel jasdel deleted the fix/http2AbsoluteURL branch December 13, 2016 23:41
@awstools awstools mentioned this pull request Dec 15, 2016
skotambkar pushed a commit to skotambkar/aws-sdk-go that referenced this pull request May 20, 2021
Adds support for deserializing REST-XML union resources

Fixes aws#939
Related to smithy-lang/smithy#678
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