-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Request PATH includes FQDN and Protocol? #944
Comments
Hi @charz this is correct. This is a valid HTTP request, but some server applications do not correctly support the absolute URL in the request's header. The http.Client may use the absolute URL in the request's initial header if the request was built where the URL.Opaque field is set. The SDK does this to ensure no unexpected escaping is performed by the Go http Client that would break the request signature. |
Hi @jasdel, Thanks for explaining that! I'm a newbie in Go, how can I switch to the common form of Request-URI (disable absolute URI)? just leave URL.Opaque as empty? |
In Go 1.5+ there is the |
Thx, it works. |
BTW, use newer version sdk will fix the problem (> |
Updates the SDK's internal changelog utility to be more restrictive of the acceptable values from VISUAL/EDITOR environment variable usage.
I tried to use go sdk to head an object to an s3 compatible APIs, but I noticed the HEAD request include the FQDN and protocol (by tcpdump). Is that normal?
sws-sdk-go
s3cmd
The text was updated successfully, but these errors were encountered: