diff options
author | 2025-01-30 13:56:08 +0100 | |
---|---|---|
committer | 2025-01-30 13:56:08 +0100 | |
commit | b3ecfe1e0a2a130d066afea733a17a9b5e58917e (patch) | |
tree | d07b18bdc47d9b325e323fc4bfe35b9d013b26c3 | |
parent | [bugfix] Missing emoji urls (#3707) (diff) | |
download | gotosocial-b3ecfe1e0a2a130d066afea733a17a9b5e58917e.tar.xz |
[docs] remove `-X POST` from curl commands (#3665)
Daniel, author of curl, explains why `-X POST` is not
necessary and considered bad behavior:
https://daniel.haxx.se/blog/2015/09/11/unnecessary-use-of-curl-x/ for
-rw-r--r-- | docs/api/authentication.md | 2 | ||||
-rw-r--r-- | docs/locales/zh/api/authentication.md | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/docs/api/authentication.md b/docs/api/authentication.md index 0b950543c..b9fccf98b 100644 --- a/docs/api/authentication.md +++ b/docs/api/authentication.md @@ -8,7 +8,6 @@ We need to register a new application, which we can then use to request an OAuth ```bash curl \ - -X POST \ -H 'Content-Type:application/json' \ -d '{ "client_name": "your_app_name", @@ -89,7 +88,6 @@ You can do this with another `POST` request that looks like the following: ```bash curl \ - -X POST \ -H 'Content-Type: application/json' \ -d '{ "redirect_uri": "urn:ietf:wg:oauth:2.0:oob", diff --git a/docs/locales/zh/api/authentication.md b/docs/locales/zh/api/authentication.md index 156c11f31..798c52b4c 100644 --- a/docs/locales/zh/api/authentication.md +++ b/docs/locales/zh/api/authentication.md @@ -8,7 +8,6 @@ ```bash curl \ - -X POST \ -H 'Content-Type:application/json' \ -d '{ "client_name": "your_app_name", @@ -89,7 +88,6 @@ YOUR_AUTHORIZATION_TOKEN ```bash curl \ - -X POST \ -H 'Content-Type: application/json' \ -d '{ "redirect_uri": "urn:ietf:wg:oauth:2.0:oob", |