Skip to content

Commit

Permalink
fix: basic auth examples
Browse files Browse the repository at this point in the history
Signed-off-by: Russ Savage <[email protected]>
  • Loading branch information
russorat committed Sep 4, 2024
1 parent f38adb2 commit 0234ce8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/http/basic-auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,22 +153,22 @@ Without any credentials:

```bash
curl https://your-domain.ngrok.app/status/200

401 Unauthorized
```

`401 Unauthorized`

With incorrect credentials:

```bash
curl https://your-domain.ngrok.app/status/200 --user "foo:bar"

401 Unauthorized
```

`401 Unauthorized`

And finally with valid credentials:

```bash
curl https://your-domain.ngrok.app/status/200 --user "falken:joshuahunter2" -I

HTTP/2 200
```

`HTTP/2 200`

0 comments on commit 0234ce8

Please sign in to comment.