Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses authored Dec 11, 2023
1 parent 8f597c5 commit 9d3dd59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/paste/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ <h3>EXAMPLES</h3>

<p><strong>cURL:</strong> Paste a file named 'file.txt'</p>

<pre>curl -X POST -f "file=@file.txt" https://paste.fosscu.org/file</pre>
<pre>curl -X POST -F "file=@file.txt" https://paste.fosscu.org/file</pre>

<p><strong>cURL:</strong> Paste from stdin</p>

<pre>echo "Hello, world." | curl -X POST -f "file=@-" https://paste.fosscu.org/file</pre>
<pre>echo "Hello, world." | curl -X POST -F "file=@-" https://paste.fosscu.org/file</pre>

<p><strong>cURL:</strong> Delete an existing paste</p>

Expand All @@ -97,7 +97,7 @@ <h3>EXAMPLES</h3>

<pre>function paste() {
local file=${1:-/dev/stdin}
curl -X POST -f "file=@${file}" https://paste.fosscu.org/file
curl -X POST -F "file=@${file}" https://paste.fosscu.org/file
}</pre>
</pre>
</body>
Expand Down

0 comments on commit 9d3dd59

Please sign in to comment.