diff options
author | VG <vg@devys.org> | 2014-11-29 23:57:08 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2014-11-29 23:57:08 +0100 |
commit | 7c6c10f8e5bae9f112dcde5f8cc3bf7bf178db41 (patch) | |
tree | 8df8cd5d4f54abcdaa0b196b2d493d5bd22460fa /scripts | |
parent | ec42aa12bf5ac9f9926003ead78f54d1ed35ba52 (diff) | |
download | pasteme-7c6c10f8e5bae9f112dcde5f8cc3bf7bf178db41.tar.gz pasteme-7c6c10f8e5bae9f112dcde5f8cc3bf7bf178db41.tar.bz2 pasteme-7c6c10f8e5bae9f112dcde5f8cc3bf7bf178db41.zip |
fix pasteme script when no ascii data is used
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pasteme | 6 |
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/ |