[mod_magnet] fix magnet_cgi_set() set of env vars (fixes #2763)

(thx flynn)

x-ref:
  "Setting REMOTE_USER with lua does not work"
  https://redmine.lighttpd.net/issues/2763
This commit is contained in:
Glenn Strauss 2016-11-03 17:11:55 -04:00
parent 26c44e0057
commit c74bdf834b
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ static int magnet_cgi_set(lua_State *L) {
/* __newindex: param 1 is the (empty) table the value is supposed to be set in */
const_buffer key = magnet_checkconstbuffer(L, 2);
const_buffer val = magnet_checkconstbuffer(L, 2);
const_buffer val = magnet_checkconstbuffer(L, 3);
array_set_key_value(con->environment, key.ptr, key.len, val.ptr, val.len);