From c4bb66f64cef317fc250ffc516c6d381a3005d76 Mon Sep 17 00:00:00 2001 From: Marcus Jaschen Date: Mon, 20 Jan 2025 09:13:34 +0100 Subject: [PATCH] remove `-X POST` from curl commands 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 --- docs/api/authentication.md | 2 -- docs/locales/zh/api/authentication.md | 2 -- 2 files changed, 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",