Skip to content

Commit

Permalink
Use URL.Path for (request-target)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjslep committed Mar 9, 2019
1 parent 5460b04 commit 3b55e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func addRequestTarget(r *http.Request) func(b *bytes.Buffer) error {
b.WriteString(headerFieldDelimiter)
b.WriteString(strings.ToLower(r.Method))
b.WriteString(requestTargetSeparator)
b.WriteString(r.URL.String())
b.WriteString(r.URL.Path)
return nil
}
}
Expand Down

0 comments on commit 3b55e31

Please sign in to comment.