~yozik04/nginx/rtmp

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/src/ngx_http_lua_ndk.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-02-15 03:05:42 UTC
  • mfrom: (4.3.10 sid)
  • Revision ID: package-import@ubuntu.com-20140215030542-71ubtowl24vf7nfn
Tags: 1.4.5-1ubuntu1
* Resynchronise with Debian (LP: #1280511).  Remaining changes:
  - debian/patches/ubuntu-branding.patch:
    + Add Ubuntu branding to server_tokens.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
    lua_pushvalue(L, -1); /* table key key */
46
46
    lua_pushvalue(L, -1); /* table key key key */
47
 
    lua_pushlightuserdata(L, func); /* table key key key func */
 
47
    lua_pushlightuserdata(L, (void *) func); /* table key key key func */
48
48
    lua_pushcclosure(L, ngx_http_lua_run_set_var_directive, 2);
49
49
        /* table key key closure */
50
50
    lua_rawset(L, 1); /* table key */
85
85
    arg.data = (u_char *) luaL_checklstring(L, 1, &len);
86
86
    arg.len = len;
87
87
 
88
 
    lua_pushlightuserdata(L, &ngx_http_lua_request_key);
89
 
    lua_rawget(L, LUA_GLOBALSINDEX);
90
 
    r = lua_touserdata(L, -1);
91
 
    lua_pop(L, 1);
92
 
 
 
88
    r = ngx_http_lua_get_req(L);
93
89
    if (r == NULL) {
94
90
        return luaL_error(L, "no request object found");
95
91
    }