Skip to content

Commit 72177e9

Browse files
committed
Include --post302 in create go-link with curl example
The example uses `(http://)go` rather than `https://go.[tailnet]` (hence using `-L`), however by default `curl` swaps from `POST` to `GET` on a 302 unless [`--post302`](https://manpages.debian.org/curl#post302) is passed, causing the example command to fail to create a new link. Signed-off-by: Michael Diamond <[email protected]>
1 parent 6821994 commit 72177e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmpl/help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ <h2 id="api">Application Programming Interface (API)</h2>
137137
<p>
138138
Create a new link by sending a POST request with a <code>short</code> and <code>long</code> value:
139139

140-
<pre>$ curl -L -H Sec-Golink:1 -d short=cs -d long=https://cs.github.com/ {{go}}
140+
<pre>$ curl -L --post302 -H Sec-Golink:1 -d short=cs -d long=https://cs.github.com/ {{go}}
141141
{{`{"Short":"cs","Long":"https://cs.github.com/","Created":"2022-06-03T22:15:29.993978392Z","LastEdit":"2022-06-03T22:15:29.993978392Z","Owner":"[email protected]"}`}}
142142
</pre>
143143

0 commit comments

Comments
 (0)