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 10, 2023
1 parent 01b087a commit b9e93d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/paste/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

Paste a file named 'file.txt' using cURL:

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

Paste from stdin using cURL:

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

Delete an existing paste with id <id> using cURL:

Expand All @@ -51,7 +51,7 @@

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
}
</body>
</html>
</html>

0 comments on commit b9e93d2

Please sign in to comment.