Skip to content

Commit 00d9b60

Browse files
authored
Merge pull request #1254 from natsuki14/patch-1
I guess some sample curl commands are wrong.
2 parents 9536f1d + 2050ec8 commit 00d9b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial/Authentication.lhs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,10 @@ genAuthMain = run 8080 (serveWithContext genAuthAPI genAuthServerContext genAuth
368368
$ curl -XGET localhost:8080/private
369369
Missing 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"
375375
Invalid Cookie
376376
377377
$ curl -XGET localhost:8080/public

0 commit comments

Comments
 (0)