projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
file: do not emit Content-Length header for 304/412 responses
[project/uhttpd.git]
/
lua.c
diff --git
a/lua.c
b/lua.c
index
55efaaa
..
f4a5743
100644
(file)
--- a/
lua.c
+++ b/
lua.c
@@
-144,7
+144,7
@@
static lua_State *uh_lua_state_init(void)
lua_State *L;
int ret;
lua_State *L;
int ret;
- L = lua
_open
();
+ L = lua
L_newstate
();
luaL_openlibs(L);
/* build uhttpd api table */
luaL_openlibs(L);
/* build uhttpd api table */
@@
-255,7
+255,7
@@
static void lua_main(struct client *cl, struct path_info *pi, char *url)
printf("Status: 500 Internal Server Error\r\n\r\n"
"Unable to launch the requested Lua program:\n"
printf("Status: 500 Internal Server Error\r\n\r\n"
"Unable to launch the requested Lua program:\n"
- " %s: %s\n", pi->phys,
strerror(errno)
);
+ " %s: %s\n", pi->phys,
error
);
}
exit(0);
}
exit(0);