aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2022-09-05 08:22:44 -0500
committerGitHub <noreply@github.com>2022-09-05 14:22:44 +0100
commitb42aaf29ea09b134feb42045c3f17bd6dda7c132 (patch)
tree233a1f0b1164c36ca28c95f61b228151cada65c5 /docs
parent0ad0190f69a2e0b33c83840c36045afe50fbf1f0 (diff)
downloadgitea-b42aaf29ea09b134feb42045c3f17bd6dda7c132.tar.gz
gitea-b42aaf29ea09b134feb42045c3f17bd6dda7c132.zip
Remove insecure flag from curl (#21074)
Followup to #21071 Thanks for the catch @wxiaoguang [WRT](https://github.com/go-gitea/gitea/pull/21071#discussion_r962706673) Ref #21071
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/developers/api-usage.en-us.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/doc/developers/api-usage.en-us.md b/docs/content/doc/developers/api-usage.en-us.md
index 7f7baece7f..a7b87f8f08 100644
--- a/docs/content/doc/developers/api-usage.en-us.md
+++ b/docs/content/doc/developers/api-usage.en-us.md
@@ -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"}
```