lua fixes

This commit is contained in:
roberto@goyle
2012-03-23 21:22:17 +01:00
parent 6a73e3ae05
commit 282b2d5ace
2 changed files with 4 additions and 5 deletions
+4 -4
View File
@@ -498,8 +498,8 @@ void fastrouter_loop(int id) {
ufr.mapper = uwsgi_fr_map_use_void;
if (ufr.use_cache) {
ufr.mapper = uwsgi_fr_map_use_cache;
if (ufr.use_cache) {
ufr.mapper = uwsgi_fr_map_use_cache;
}
else if (ufr.pattern) {
ufr.mapper = uwsgi_fr_map_use_pattern;
@@ -511,8 +511,8 @@ void fastrouter_loop(int id) {
ufr.mapper = uwsgi_fr_map_use_base;
}
else if (ufr.code_string_code && ufr.code_string_function) {
ufr.mapper = uwsgi_fr_map_use_cache;
}
ufr.mapper = uwsgi_fr_map_use_cs;
}
else if (ufr.to_socket) {
ufr.mapper = uwsgi_fr_map_use_to;
}
-1
View File
@@ -630,7 +630,6 @@ char *uwsgi_lua_code_string(char *id, char *code, char *func, char *key, uint16_
#endif
if (lua_pcall(L, 1, 1, 0) != 0) {
uwsgi_log("CAZZO\n");
uwsgi_log("error running function `f': %s",
lua_tostring(L, -1));
return NULL;