aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/pasteme6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/pasteme b/scripts/pasteme
index db4b641..fe1f720 100755
--- a/scripts/pasteme
+++ b/scripts/pasteme
@@ -6,5 +6,7 @@ if [ "$file" == "" ]; then
file=-
fi
-cat "$file" \
- | curl -w '%{redirect_url}\n' --form 'content=<-' http://paste.devys.org/
+sed '1s/^/content=/' "$file" \
+ | curl -w '%{redirect_url}\n' \
+ -X POST -H "Content-Type: text/plain; charset=UTF-8" \
+ --data-binary @- http://paste.devys.org/