aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Kisiel <kamil@kamilkisiel.net>2016-05-25 23:33:48 +0300
committerKamil Kisiel <kamil@kamilkisiel.net>2016-05-25 23:33:48 +0300
commitff356348f74133a59d3e93aa24b5b4551b6fe90d (patch)
tree714adbaad95e04b393d5a88e44d8e8336a723b2a
parent667fe4e3466a040b780561fe9b51a83a3753eefc (diff)
parentf5b37263f070b2cf0fd8d0bf1b4bbe206b2737e1 (diff)
Merge pull request #39 from 0x434D53/master
Update Readme: Added HttpOnly, Secure flags for setting the cookie
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5ed299e..da112e4 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,8 @@ func SetCookieHandler(w http.ResponseWriter, r *http.Request) {
Name: "cookie-name",
Value: encoded,
Path: "/",
+ Secure: true,
+ HttpOnly: true,
}
http.SetCookie(w, cookie)
}