summaryrefslogtreecommitdiff
path: root/hh.go
diff options
context:
space:
mode:
Diffstat (limited to 'hh.go')
-rw-r--r--hh.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/hh.go b/hh.go
index e6593ed..16c25d2 100644
--- a/hh.go
+++ b/hh.go
@@ -1,14 +1 @@
package hh
-
-import (
- "errors"
- "net/http"
-)
-
-func Cookie(r http.Request, name string) (string, error) {
- cookie, _ := r.Cookie(name)
- if cookie == nil {
- return "", errors.New("Bad request: missing cookie " + name)
- }
- return cookie.Value, nil
-}