Skip to content

Commit a64a58e

Browse files
committed
allow NGINX primitives in if block within location block in http block
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 6537014 commit a64a58e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
06/19/2024
22
- add NGINX macros/functions for setting claim variables in the request context
33
see OpenIDC/ngx_oauth2_module#7; thanks @@smanolache and @pladen
4+
- allow NGINX primitives in an if block within a location block in the http block
45
- bump to 1.6.3dev
56
.
67
06/05/2024

include/oauth2/nginx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
#define OAUTH2_NGINX_CMD(take, module, directive, primitive) \
114114
{ \
115115
ngx_string(directive), \
116-
NGX_HTTP_LOC_CONF | NGX_CONF_TAKE##take, \
116+
NGX_HTTP_LOC_CONF | NGX_HTTP_LIF_CONF | NGX_CONF_TAKE##take, \
117117
ngx_##module##_set_##primitive, NGX_HTTP_LOC_CONF_OFFSET, \
118118
0, NULL \
119119
}

0 commit comments

Comments
 (0)