--- parser3/src/classes/image.C 2012/06/15 06:13:10 1.141 +++ 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.141 2012/06/15 06:13:10 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*/, - false/*binary*/, - (char*)buf.ptr, - buf.size, - file_name, - new VString(*new String("image/gif"))); + 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); }