From 2050ec86a2e906aa19f1354552cd3c9e1db288e0 Mon Sep 17 00:00:00 2001 From: natsuki14 Date: Sun, 15 Dec 2019 03:09:01 +0900 Subject: [PATCH] I guess some sample curl commans are wrong. --- doc/tutorial/Authentication.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial/Authentication.lhs b/doc/tutorial/Authentication.lhs index e602528e..da18b7ee 100644 --- a/doc/tutorial/Authentication.lhs +++ b/doc/tutorial/Authentication.lhs @@ -368,10 +368,10 @@ genAuthMain = run 8080 (serveWithContext genAuthAPI genAuthServerContext genAuth $ curl -XGET localhost:8080/private Missing auth header -$ curl -XGET localhost:8080/private -H "servant-auth-cookie: key3" +$ curl -XGET localhost:8080/private -H "Cookie: servant-auth-cookie=key3" [{"ssshhh":"this is a secret: Ghédalia Tazartès"}] -$ curl -XGET localhost:8080/private -H "servant-auth-cookie: bad-key" +$ curl -XGET localhost:8080/private -H "Cookie: servant-auth-cookie=bad-key" Invalid Cookie $ curl -XGET localhost:8080/public