Permalink
Browse files

Add HttpOnly to set-extra-attrs test.

  • Loading branch information...
Ignacio Thayer
Ignacio Thayer committed Aug 4, 2011
1 parent 2e6c6e2 commit f54940b7b095a5fa4278a0d816102e10606c342b
Showing with 2 additions and 2 deletions.
  1. +2 −2 ring-core/test/ring/middleware/test/cookies.clj
@@ -50,10 +50,10 @@
(:headers resp)))))
(deftest wrap-cookies-set-extra-attrs
- (let [cookies {"a" {:value "b", :path "/", :secure true}}
+ (let [cookies {"a" {:value "b", :path "/", :secure true, :http-only true }}
handler (constantly {:cookies cookies})
resp ((wrap-cookies handler) {})]
- (is (= {"Set-Cookie" (list "a=b;Path=/;Secure")}
+ (is (= {"Set-Cookie" (list "a=b;Path=/;Secure;HttpOnly")}
(:headers resp)))))
(deftest wrap-cookies-always-assocs-map

0 comments on commit f54940b

Please sign in to comment.