From 6a7246fe5ab85b3d0db9de2fac064ba1045e3450 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sun, 31 Jul 2011 19:47:54 +0200 Subject: [PATCH] a little fix --- plugins/python/python_plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index 4b3ea72f..b0a567ac 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -196,7 +196,7 @@ PyObject *uwsgi_pyimport_by_filename(char *name, char *filename) { char *real_filename = filename; - if (strncmp(filename, "http://", 7) && strncmp(filename, "sym://", 6) && strncmp(filename, "data://", 6)) { + if (strncmp(filename, "http://", 7) && strncmp(filename, "sym://", 6) && strncmp(filename, "data://", 7)) { pyfile = fopen(filename, "r"); if (!pyfile) { @@ -776,6 +776,9 @@ char *uwsgi_pythonize(char *orig) { else if (!strncmp(name, "http://", 7)) { name+=7; } + else if (!strncmp(name, "data://", 7)) { + name+=7; + } len = strlen(name); for(i=0;i