Merge pull request #1254 from natsuki14/patch-1

I guess some sample curl commands are wrong.
This commit is contained in:
Alp Mestanogullari 2019-12-19 07:53:54 +01:00 committed by GitHub
commit 00d9b60796
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