Skip to content

Commit 6056e35

Browse files
committed
*) mod_lua: Make r.ap_auth_type writable
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1922962 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9248113 commit 6056e35

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

STATUS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ RELEASE SHOWSTOPPERS:
157157
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
158158
[ start all new proposals below, under PATCHES PROPOSED. ]
159159

160-
*) mod_lua: Make r.ap_auth_type writable
161-
trunk patch: https://svn.apache.org/r1921260
162-
2.4.x patch: svn merge -c 1921260 ^/httpd/httpd/trunk .
163-
+1: jorton, covener, jim
164160

165161
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
166162
[ New proposals should be added at the end of the list ]

changes-entries/pr62497.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*) mod_lua: Make r.ap_auth_type writable. PR 62497.
2+
[Michael Osipov <michaelo apache.org>]

docs/manual/mod/mod_lua.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ end
360360
<tr>
361361
<td><code>ap_auth_type</code></td>
362362
<td>string</td>
363-
<td>no</td>
363+
<td>yes</td>
364364
<td>If an authentication check was made, this is set to the type
365365
of authentication (f.x. <code>basic</code>)</td>
366366
</tr>

docs/manual/mod/mod_lua.xml.fr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ end
383383
<tr>
384384
<td><code>ap_auth_type</code></td>
385385
<td>string</td>
386-
<td>non</td>
386+
<td>oui</td>
387387
<td>Ce champ contient le type d'authentification effectuée
388388
(par exemple <code>basic</code>)</td>
389389
</tr>

modules/lua/lua_request.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,6 +2551,12 @@ static int req_newindex(lua_State *L)
25512551
request_rec *r = ap_lua_check_request_rec(L, 1);
25522552
key = luaL_checkstring(L, 2);
25532553

2554+
if (0 == strcmp("ap_auth_type", key)) {
2555+
const char *value = luaL_checkstring(L, 3);
2556+
r->ap_auth_type = apr_pstrdup(r->pool, value);
2557+
return 0;
2558+
}
2559+
25542560
if (0 == strcmp("args", key)) {
25552561
const char *value = luaL_checkstring(L, 3);
25562562
r->args = apr_pstrdup(r->pool, value);

0 commit comments

Comments
 (0)