Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikPelli committed Dec 23, 2024
1 parent 5adab11 commit bbea975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Adding a header to each request
return r, nil
})
# Note that the function is called before the proxy sends the request to the server
> Note that the function is called before the proxy sends the request to the server
For printing the content type of all incoming responses
Expand Down
5 changes: 2 additions & 3 deletions internal/signer/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"net"
"runtime"
"sort"
"strings"
"time"
)

Expand All @@ -25,9 +26,7 @@ func hashSorted(lst []string) []byte {
copy(c, lst)
sort.Strings(c)
h := sha256.New()
for _, s := range c {
h.Write([]byte(s + ","))
}
h.Write([]byte(strings.Join(c, ",")))
return h.Sum(nil)
}

Expand Down

0 comments on commit bbea975

Please sign in to comment.