--- parser3/src/classes/image.C 2012/06/08 11:44:01 1.140 +++ parser3/src/classes/image.C 2012/06/15 11:54:18 1.142 @@ -25,7 +25,7 @@ #include "pa_vdate.h" #include "pa_table.h" -volatile const char * IDENT_IMAGE_C="$Id: image.C,v 1.140 2012/06/08 11:44:01 misha Exp $"; +volatile const char * IDENT_IMAGE_C="$Id: image.C,v 1.142 2012/06/15 11:54:18 moko Exp $"; // defines @@ -894,12 +894,7 @@ static void _gif(Request& r, MethodParam VFile& vfile=*new VFile; - vfile.set(false/*not tainted*/, - (const char*)buf.ptr, buf.size, - file_name, - new VString(*new String("image/gif"))); - - vfile.set_mode(false/*binary*/); + vfile.set_binary(false/*not tainted*/, (const char *)buf.ptr, buf.size, file_name, new VString(*new String("image/gif"))); r.write_no_lang(vfile); }