tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
16.89k stars 1.28k forks source link

api.md: explicitly set content-type headers in POST CURL examples #11916

Closed mpminardi closed 3 weeks ago

mpminardi commented 3 weeks ago

Explicitly set -H "Content-Type: application/json" in CURL examples for POST endpoints as the default content type used by CURL is otherwise application/x-www-form-urlencoded and these endpoints expect JSON data.

Updates https://github.com/tailscale/tailscale/issues/11914