Hi there,
was reading uwsgi.c and noticed that you look only for .js and not .json
files when loading a json config file. .json is at least what i use for
json files.
Feel free to apply if it makes sense, not even compile tested :)
thanks,
riccardo
diff -r 071cd1f6b780 uwsgi.c
--- a/uwsgi.c Mon Oct 24 18:52:41 2011 +0200
+++ b/uwsgi.c Tue Oct 25 16:03:16 2011 +0200
@@ -1290,6 +1290,9 @@
#endif
#ifdef UWSGI_JSON
if (!strcmp(uct->filename + strlen(uct->filename) - 3, ".js")) {
+ uwsgi_json_config(uct->filename, uwsgi.magic_table);
+ }
+ if (!strcmp(uct->filename + strlen(uct->filename) - 5, ".json")) {
uwsgi_json_config(uct->filename, uwsgi.magic_table);
}
#endif
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi