Skip to content

Commit

Permalink
Remove insecure flag from curl (#21074)
Browse files Browse the repository at this point in the history
Followup to #21071 
Thanks for the catch @wxiaoguang 

[WRT](#21071 (comment))

Ref #21071
  • Loading branch information
jolheiser authored Sep 5, 2022
1 parent 0ad0190 commit b42aaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/doc/developers/api-usage.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Note that `/users/:name/tokens` is a special endpoint and requires you
to authenticate using `BasicAuth` and a password, as follows:

```sh
$ curl -H "Content-Type: application/json" -k -d '{"name":"test"}' -u username:password https://gitea.your.host/api/v1/users/<username>/tokens
$ curl -H "Content-Type: application/json" -d '{"name":"test"}' -u username:password https://gitea.your.host/api/v1/users/<username>/tokens
{"id":1,"name":"test","sha1":"9fcb1158165773dd010fca5f0cf7174316c3e37d","token_last_eight":"16c3e37d"}
```

Expand Down

0 comments on commit b42aaf2

Please sign in to comment.