PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- *) mod_lua: Make r.ap_auth_type writable
- trunk patch: https://svn.apache.org/r1921260
- 2.4.x patch: svn merge -c 1921260 ^/httpd/httpd/trunk .
- +1: jorton, covener, jim
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
--- /dev/null
+ *) mod_lua: Make r.ap_auth_type writable. PR 62497.
+ [Michael Osipov <michaelo apache.org>]
<tr>
<td><code>ap_auth_type</code></td>
<td>string</td>
- <td>no</td>
+ <td>yes</td>
<td>If an authentication check was made, this is set to the type
of authentication (f.x. <code>basic</code>)</td>
</tr>
<tr>
<td><code>ap_auth_type</code></td>
<td>string</td>
- <td>non</td>
+ <td>oui</td>
<td>Ce champ contient le type d'authentification effectuée
(par exemple <code>basic</code>)</td>
</tr>
request_rec *r = ap_lua_check_request_rec(L, 1);
key = luaL_checkstring(L, 2);
+ if (0 == strcmp("ap_auth_type", key)) {
+ const char *value = luaL_checkstring(L, 3);
+ r->ap_auth_type = apr_pstrdup(r->pool, value);
+ return 0;
+ }
+
if (0 == strcmp("args", key)) {
const char *value = luaL_checkstring(L, 3);
r->args = apr_pstrdup(r->pool, value);