Export to GitHub

v8cgi - issue #91

Binary file echo


Posted on Mar 2, 2011 by Helpful Bird

(windows 7 version 0.9 cgi mode) 1. Read binary file into buffer 2. set header content-type 3. response.write the file 4. random return chars are in the downloaded making it unreadable

Using:

include <fcntl.h> /* _O_BINARY */

unsigned int _CRT_fmode = _O_BINARY;

At the top of v8cgi.cc fixes it

Comment #1

Posted on Mar 2, 2011 by Happy Giraffe

(No comment was entered for this change.)

Comment #2

Posted on Apr 29, 2011 by Happy Giraffe

Thanks, fixed in revision 911.

Status: Fixed

Labels:
Type-Defect Priority-Medium