aboutsummaryrefslogtreecommitdiffhomepage
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/context/context.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/http/context/context.go b/http/context/context.go
index 1c65e64..7a434b5 100644
--- a/http/context/context.go
+++ b/http/context/context.go
@@ -92,7 +92,7 @@ func (c *Context) PocketRequestToken() string {
return c.getContextStringValue(middleware.PocketRequestTokenContextKey)
}
-func (c *Context) getContextStringValue(key *middleware.ContextKey) string {
+func (c *Context) getContextStringValue(key middleware.ContextKey) string {
if v := c.request.Context().Value(key); v != nil {
return v.(string)
}
@@ -100,7 +100,7 @@ func (c *Context) getContextStringValue(key *middleware.ContextKey) string {
return ""
}
-func (c *Context) getContextBoolValue(key *middleware.ContextKey) bool {
+func (c *Context) getContextBoolValue(key middleware.ContextKey) bool {
if v := c.request.Context().Value(key); v != nil {
return v.(bool)
}
@@ -108,7 +108,7 @@ func (c *Context) getContextBoolValue(key *middleware.ContextKey) bool {
return false
}
-func (c *Context) getContextIntValue(key *middleware.ContextKey) int64 {
+func (c *Context) getContextIntValue(key middleware.ContextKey) int64 {
if v := c.request.Context().Value(key); v != nil {
return v.(int64)
}