Skip to content

Commit 4a56dad

Browse files
committed
bugfix: the access phase handler actually ran in a phase later than the "access" phase.
1 parent 179e2e8 commit 4a56dad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ngx_http_srcache_fetch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ ngx_http_srcache_access_handler(ngx_http_request_t *r)
217217
ph = cmcf->phase_engine.handlers;
218218
cur_ph = &ph[r->phase_handler];
219219

220-
last_ph = &ph[cur_ph->next - 1];
220+
/* we should skip the post_access phase handler here too */
221+
last_ph = &ph[cur_ph->next - 2];
221222

222223
if (cur_ph < last_ph) {
223224
dd("swaping the contents of cur_ph and last_ph...");

0 commit comments

Comments
 (0)