version 0.3.14
[fms.git] / src / http / fmshttprequesthandlerfactory.cpp
index e91fb51..6adb09f 100644 (file)
@@ -23,7 +23,7 @@ FMSHTTPRequestHandlerFactory::FMSHTTPRequestHandlerFactory()
 {\r
        // set template\r
        std::string templatestr="<html><head></head><body><a href=\"home.htm\">Home</a><br><h1>Could not open template.htm!  Place in program directory and restart!</h1><br>[CONTENT]</body></html>";\r
-       FILE *infile=fopen("template.htm","r+b");\r
+       FILE *infile=fopen("template.htm","rb");\r
        if(infile)\r
        {\r
                fseek(infile,0,SEEK_END);\r