summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwgetpaste4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgetpaste b/wgetpaste
index 1f4db57..33e91f9 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -133,8 +133,8 @@ POST_dpaste() {
echo -e "--$boundary\r"
echo -e "Content-Disposition: form-data; name=\"content\"\r"
echo -e "\r"
- echo -e "${content}\r"
- echo -e "--${boundary}--\r"
+ echo -n "${content}"
+ echo -e "\r\n--${boundary}--\r"
ADDITIONAL_HEADERS_dpaste=("Content-Type: multipart/form-data; boundary=${boundary}")
}
REGEX_RAW_dpaste='s|^http.*|\0.txt|'