docs(gatecrashers): change example, now content-type is application/json

This commit is contained in:
Michele Sessa 2022-12-06 13:31:23 +00:00 committed by Michele
parent 9a2a1b7e9d
commit 73d7b44898
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ Unauthorized attempt:
```shell
curl -i -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "alcohol", "food": "bats"}'
HTTP/1.1 401 Unauthorized
Content-Type: text/html
Content-Type: application/json
Date: [date]
Connection: keep-alive
Keep-Alive: timeout=5
@ -39,7 +39,7 @@ Authorized attempt:
```shell
curl -i -u Rahima_Young:abracadabra -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "alcohol", "food": "bats"}'
HTTP/1.1 200 OK
Content-Type: text/html
Content-Type: application/json
Date: [date]
Connection: keep-alive
Keep-Alive: timeout=5