Minor docstring update for http-only flag #85

Closed
wants to merge 1 commit into
from

Minor docstring update for http-only flag

Fix confusing and incorrect definition in docstring for http-only https://www.owasp.org/index.php/HttpOnly
commit a69e7e49058084173f563538d3f52f9c01183687 @sitepodmatt sitepodmatt committed Dec 17, 2014
View
2 ring-core/src/ring/middleware/cookies.clj
@@ -151,7 +151,7 @@
:max-age - the maximum age in seconds of the cookie
:expires - a date string at which the cookie will expire
:secure - set to true if the cookie is valid for HTTPS only
- :http-only - set to true if the cookie is valid for HTTP only"
+ :http-only - set to true to prevent client side script access to cookie"
[handler]
(fn [request]
(let [request (if (request :cookies)