on master help sign in
Merge pull request #1254 from natsuki14/patch-1
00d9b60Alp Mestanogullari
doc/tutorial/Authentication.lhs+2−2
@@ -368,10 +368,10 @@ genAuthMain = run 8080 (serveWithContext genAuthAPI genAuthServerContext genAuth
368$ curl -XGET localhost:8080/private
368$ curl -XGET localhost:8080/private
369Missing auth header
369Missing auth header
370
370
371−$ curl -XGET localhost:8080/private -H "servant-auth-cookie: key3"
371+$ curl -XGET localhost:8080/private -H "Cookie: servant-auth-cookie=key3"
372[{"ssshhh":"this is a secret: Ghédalia Tazartès"}]
372[{"ssshhh":"this is a secret: Ghédalia Tazartès"}]
373
373
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"
375Invalid Cookie
375Invalid Cookie
376
376
377$ curl -XGET localhost:8080/public
377$ curl -XGET localhost:8080/public