I guess some sample curl commans are wrong.

This commit is contained in:
natsuki14 2019-12-15 03:09:01 +09:00 committed by GitHub
parent d9e653cdc1
commit 2050ec86a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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