1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

* modules/lua/: s/apr_strnatcmp/strcmp/ - strnat*cmp functions are

for natural order string sorting.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832910 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joe Orton
2009-11-04 23:39:57 +00:00
parent afe02c5efa
commit 0aa10f9c58
3 changed files with 16 additions and 16 deletions

View File

@@ -454,25 +454,25 @@ static int req_newindex(lua_State *L)
/* const char* key = luaL_checkstring(L, -2); */
request_rec *r = ap_lua_check_request_rec(L, 1);
key = luaL_checkstring(L, 2);
if (0 == apr_strnatcmp("status", key)) {
if (0 == strcmp("status", key)) {
int code = luaL_checkinteger(L, 3);
r->status = code;
return 0;
}
if (0 == apr_strnatcmp("content_type", key)) {
if (0 == strcmp("content_type", key)) {
const char *value = luaL_checkstring(L, 3);
ap_set_content_type(r, apr_pstrdup(r->pool, value));
return 0;
}
if (0 == apr_strnatcmp("filename", key)) {
if (0 == strcmp("filename", key)) {
const char *value = luaL_checkstring(L, 3);
r->filename = apr_pstrdup(r->pool, value);
return 0;
}
if (0 == apr_strnatcmp("uri", key)) {
if (0 == strcmp("uri", key)) {
const char *value = luaL_checkstring(L, 3);
r->uri = apr_pstrdup(r->pool, value);
return 0;