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

remove query string from url in http client http segment #228

Merged
merged 3 commits into from
Apr 30, 2020

Conversation

crathjen
Copy link
Contributor

*Issue #227 *

Description of changes:
Removes query string from the http.request.url in the subsegment created by xray.RoundTripper

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bhautikpip bhautikpip self-requested a review April 30, 2020 17:48
xray/client.go Outdated
@@ -117,3 +118,8 @@ func (rt *roundtripper) RoundTrip(r *http.Request) (*http.Response, error) {
})
return resp, err
}

func getURLMinusQuery (u url.URL) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change the method name to something more intuitive like stripQueryFromURL ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep. Done

xray/client.go Show resolved Hide resolved
@bhautikpip bhautikpip self-requested a review April 30, 2020 19:39
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