changeset 99:1bc7cc7487dc

Content-type header fixed
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 03 Aug 2015 18:40:56 +0900
parents 70de8824f27e
children 8dc950197939
files sendmultipart.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sendmultipart.sh	Mon Aug 03 18:38:03 2015 +0900
+++ b/sendmultipart.sh	Mon Aug 03 18:40:56 2015 +0900
@@ -3,7 +3,7 @@
 # (C)2012,2015 by HIROSE Yuuji [yuuji(at)yatex.org]
 # You can obtain the latest version of this script from:
 #   http://www.gentei.org/~yuuji/software/sendmultipart.sh
-# Last modified Mon Aug  3 18:37:19 2015 on firestorm
+# Last modified Mon Aug  3 18:40:15 2015 on firestorm
 #
 # Typical usage:
 #  echo "Hi, here's photo I've taken.  Enjoy" | \
@@ -109,6 +109,7 @@
 	cattextwithheader $file
 	;;
       *)
+	echo -n "Content-Type: "
 	file --mime-type $file | cut -d' ' -f2
 	echo "Content-Transfer-Encoding: base64"
 	echo "Content-Disposition: inline; filename=\"$file\""

yatex.org