Skip to content

Commit 27f4aeb

Browse files
committed
use OAUTH2_NGINX_REQUEST_COPY_HACK for the time being
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent fd08169 commit 27f4aeb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/ngx_openidc_module.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ bool oauth2_nginx_response_header_set(oauth2_log_t *log, void *rec,
345345
return rc;
346346
}
347347

348+
/*
349+
* TODO
350+
*/
351+
OAUTH2_NGINX_REQUEST_COPY_HACK
352+
348353
static ngx_int_t ngx_openidc_handler(ngx_http_request_t *r)
349354
{
350355
ngx_int_t rv = NGX_DECLINED;
@@ -374,7 +379,10 @@ static ngx_int_t ngx_openidc_handler(ngx_http_request_t *r)
374379
}
375380

376381
// TODO:
382+
_oauth2_nginx_request_copy(ctx);
377383
oauth2_http_request_scheme_set(ctx->log, ctx->request, "http");
384+
385+
/*
378386
char *v = NULL;
379387
if (r->uri.len > 0) {
380388
v = oauth2_strndup((const char *)r->uri.data, r->uri.len);
@@ -387,7 +395,7 @@ static ngx_int_t ngx_openidc_handler(ngx_http_request_t *r)
387395
oauth2_http_request_query_set(ctx->log, ctx->request, v);
388396
oauth2_mem_free(v);
389397
}
390-
398+
*/
391399
oauth2_debug(ctx->log, "enter");
392400

393401
// TODO: we can move this up to avoid overhead (and have no logs...)

0 commit comments

Comments
 (0)