File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import (
26
26
"expvar"
27
27
"fmt"
28
28
"hash"
29
- "hash/fnv"
30
29
"io"
31
30
"net"
32
31
"net/http"
@@ -41,6 +40,7 @@ import (
41
40
"time"
42
41
43
42
"github.com/caddyserver/certmagic"
43
+ "github.com/cespare/xxhash/v2"
44
44
"github.com/prometheus/client_golang/prometheus"
45
45
"go.uber.org/zap"
46
46
"go.uber.org/zap/zapcore"
@@ -946,7 +946,7 @@ func (h adminHandler) originAllowed(origin *url.URL) bool {
946
946
947
947
// etagHasher returns a the hasher we used on the config to both
948
948
// produce and verify ETags.
949
- func etagHasher () hash.Hash32 { return fnv . New32a () }
949
+ func etagHasher () hash.Hash { return xxhash . New () }
950
950
951
951
// makeEtag returns an Etag header value (including quotes) for
952
952
// the given config path and hash of contents at that path.
You can’t perform that action at this time.
0 commit comments