ClosestStorm / v8cgi

Automatically exported from code.google.com/p/v8cgi
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Binary file echo #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(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

Original issue reported on code.google.com by adamtalb...@googlemail.com on 2 Mar 2011 at 6:31

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.zara on 2 Mar 2011 at 7:14

GoogleCodeExporter commented 9 years ago
Thanks, fixed in revision 911.

Original comment by ondrej.zara on 29 Apr 2011 at 7:37