Permalink
Browse files

lfcgi: fixed is_cgi()

Previous version incorrectly returned true for nginx/spawn-fcgi.
  • Loading branch information...
agladysh committed Apr 21, 2011
1 parent 7ed0aee commit c21ecb1d5e4f5971abd433e20a0e467494b08b4e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/fastcgi/lfcgi.c
View
@@ -558,8 +558,9 @@ static int lfcgi_environ(lua_State *L) {
}
return 1;
}
+
static int lfcgi_iscgi(lua_State *L) {
- lua_pushboolean(L, old_env == environ);
+ lua_pushboolean(L, FCGX_IsCGI());
return 1;
}

0 comments on commit c21ecb1

Please sign in to comment.