s4
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 diff
1.1 --- a/sendmultipart.sh Mon Aug 03 18:38:03 2015 +0900 1.2 +++ b/sendmultipart.sh Mon Aug 03 18:40:56 2015 +0900 1.3 @@ -3,7 +3,7 @@ 1.4 # (C)2012,2015 by HIROSE Yuuji [yuuji(at)yatex.org] 1.5 # You can obtain the latest version of this script from: 1.6 # http://www.gentei.org/~yuuji/software/sendmultipart.sh 1.7 -# Last modified Mon Aug 3 18:37:19 2015 on firestorm 1.8 +# Last modified Mon Aug 3 18:40:15 2015 on firestorm 1.9 # 1.10 # Typical usage: 1.11 # echo "Hi, here's photo I've taken. Enjoy" | \ 1.12 @@ -109,6 +109,7 @@ 1.13 cattextwithheader $file 1.14 ;; 1.15 *) 1.16 + echo -n "Content-Type: " 1.17 file --mime-type $file | cut -d' ' -f2 1.18 echo "Content-Transfer-Encoding: base64" 1.19 echo "Content-Disposition: inline; filename=\"$file\""