konteck / wpp

Single file embedded C++ web server
http://konteck.github.com/wpp
93 stars 47 forks source link

binary file serving not working #4

Open gzmask opened 11 years ago

gzmask commented 11 years ago

text files opens fine.

jottinger commented 11 years ago

Can you show the code you've used to serve binary content? (Is it still an issue?)

folkersj commented 9 years ago

Just to answer an old question: I changed on line 524: size_t body_len = strlen(body.c_str()); to size_t body_len = body.length();

Then it worked for me.