Modified:
trunk/servlet_examples/my_httpd.sdf
Log:
Fixed a bug in the file reading servlet.
Modified: trunk/servlet_examples/my_httpd.sdf
==============================================================================
--- trunk/servlet_examples/my_httpd.sdf (original)
+++ trunk/servlet_examples/my_httpd.sdf Thu Apr 9 18:01:46 2009
@@ -92,7 +92,7 @@
Res = {data, os:cmd("php-cgi " ++ File)};
_ ->
Mime = get_mime(string:to_lower(Type)),
- {ok, FP} = file:open(File),
+ {ok, FP} = file:open(File, [read, binary]),
Res = {handle, Mime, FP}
end,
case Res of