# HG changeset patch # User Serhii Smitiienko <hun...@nocservice.biz> # Date 1659334979 -10800 # Mon Aug 01 09:22:59 2022 +0300 # Node ID 2baa3e46385ac3c671d257dfe715bff54c896855 # Parent 069a4813e8d6d7ec662d282a10f5f7062ebd817f Allow external auth server to return http status code 429 (too many requests)
diff -r 069a4813e8d6 -r 2baa3e46385a src/http/modules/ngx_http_auth_request_module.c --- a/src/http/modules/ngx_http_auth_request_module.c Tue Jul 19 17:05:27 2022 +0300 +++ b/src/http/modules/ngx_http_auth_request_module.c Mon Aug 01 09:22:59 2022 +0300 @@ -134,7 +134,7 @@ /* return appropriate status */ - if (ctx->status == NGX_HTTP_FORBIDDEN) { + if (ctx->status == NGX_HTTP_FORBIDDEN || ctx->status == NGX_HTTP_TOO_MANY_REQUESTS) { return ctx->status; } _______________________________________________ nginx-devel mailing list -- nginx-devel@nginx.org To unsubscribe send an email to nginx-devel-le...@nginx.org