aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2024-03-02 17:19:05 +0200
committerGravatar GitHub <noreply@github.com> 2024-03-02 16:19:05 +0100
commit3166afd835a00486c918f1d3149696855897c923 (patch)
tree9ba64d0f8f16688512cf83a77787f70b0f56b81c /server.go
parentchore(deps): bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#1725) (diff)
downloadfasthttp-3166afd835a00486c918f1d3149696855897c923.tar.gz
fasthttp-3166afd835a00486c918f1d3149696855897c923.tar.bz2
fasthttp-3166afd835a00486c918f1d3149696855897c923.zip
Enable few gocritic checks; fix up issues (#1728)
Diffstat (limited to 'server.go')
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index 426351b..03b49f7 100644
--- a/server.go
+++ b/server.go
@@ -682,7 +682,7 @@ func (ctx *RequestCtx) Hijacked() bool {
// All the values are removed from ctx after returning from the top
// RequestHandler. Additionally, Close method is called on each value
// implementing io.Closer before removing the value from ctx.
-func (ctx *RequestCtx) SetUserValue(key any, value any) {
+func (ctx *RequestCtx) SetUserValue(key, value any) {
ctx.userValues.Set(key, value)
}