git.iko.soy/typeable/servant
on master help sign in
I guess some sample curl commans are wrong.
commit2050ec86a2e906aa19f1354552cd3c9e1db288e0 authornatsuki14 <kawai@charon.tech> dateSun 15 Dec 2019, 03:09 (7 years ago) parentd9e653c
1 file changed+2−2
doc/tutorial/Authentication.lhs+2−2
doc/tutorial/Authentication.lhs+2−2
@@ -368,10 +368,10 @@ genAuthMain = run 8080 (serveWithContext genAuthAPI genAuthServerContext genAuth
368368$ curl -XGET localhost:8080/private
369369Missing auth header
370370
371−$ curl -XGET localhost:8080/private -H "servant-auth-cookie: key3"
371+$ curl -XGET localhost:8080/private -H "Cookie: servant-auth-cookie=key3"
372372[{"ssshhh":"this is a secret: Ghédalia Tazartès"}]
373373
374−$ curl -XGET localhost:8080/private -H "servant-auth-cookie: bad-key"
374+$ curl -XGET localhost:8080/private -H "Cookie: servant-auth-cookie=bad-key"
375375Invalid Cookie
376376
377377$ curl -XGET localhost:8080/public