File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func Error(err error) error {
5151 if perr != nil {
5252 return err // If the URL can't be parsed, just return the original error.
5353 }
54- uerr .URL = URL (u ). String () // Update the URL to the redacted URL.
54+ uerr .URL = URL (u ) // Update the URL to the redacted URL.
5555 return uerr
5656}
5757
@@ -73,7 +73,7 @@ var paramAllowlist = map[string]struct{}{
7373}
7474
7575// URL redacts potentially sensitive query parameter values from the URL's query string.
76- func URL (u * url.URL ) * url. URL {
76+ func URL (u * url.URL ) string {
7777 qs := u .Query ()
7878 for k , v := range qs {
7979 for i := range v {
@@ -85,5 +85,5 @@ func URL(u *url.URL) *url.URL {
8585 }
8686 r := * u
8787 r .RawQuery = qs .Encode ()
88- return & r
88+ return r . Redacted ()
8989}
You can’t perform that action at this time.
0 commit comments