better mimetype file check

This commit is contained in:
roberto@sirius
2011-09-09 18:14:53 +02:00
parent 957ca1b7ed
commit c048ea0615
+6 -1
View File
@@ -1258,7 +1258,12 @@ int main(int argc, char *argv[], char *envp[]) {
/* uWSGI IS CONFIGURED !!! */
if (uwsgi.build_mime_dict) {
uwsgi_build_mime_dict(uwsgi.mime_file);
if (!access(uwsgi.mime_file, R_OK)) {
uwsgi_build_mime_dict(uwsgi.mime_file);
}
else {
uwsgi_log("!!! no mime.types file found !!!\n");
}
}
if (uwsgi.dump_options) {