Fix form upload

This commit is contained in:
Nick Chambers 2020-07-17 15:30:23 -05:00
parent 791e5885ff
commit 2ce8f7c273
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ expiry=${opts[expire]}
url=${opts[url]:-https://p.ahti.space/nanopaste-get.cgi}
tail -n +1 -- "$@" | curl -sSA karahti/1.0 -w %{redirect_url} \
-F "paste_content=<-" -F "language=$lang" -F "expiry=$expiry" \
--data-urlencode paste_content@- -d "language=$lang" -d "expiry=$expiry" \
"$url"
printf "\n"