Skip to content

Commit

Permalink
[feat] update the nginz nginx module to support nginx 1.26 (#4042)
Browse files Browse the repository at this point in the history
solves compile errors due to a refactoring done in this commit
nginx/nginx@3aef1d6
  • Loading branch information
MangoIV authored May 8, 2024
1 parent 9a2fb45 commit 7d5b70c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ self: super: {
};

nginz = (super.nginx.overrideAttrs rec {
version = "1.22.1";
version = "1.26.0";
src = super.fetchurl {
url = "https://nginx.org/download/nginx-${version}.tar.gz";
hash = "sha256-nrszOp6CuVKs0+K0rrHU/2QG9ySRurbNn+afDepzfzE=";
hash = "sha256-0ubIQ51sbbUBXY6qskcKtSrvhae/NjGCh5l34IQ3BJc=";
};
}).override {
modules = [
Expand Down
4 changes: 2 additions & 2 deletions services/nginz/third_party/nginx-zauth-module/zauth_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ static ngx_int_t zauth_parse_request (ngx_http_request_t * r) {
} else {
ngx_str_t name = ngx_string("zprovider");
ngx_str_t cookie = ngx_null_string;
ngx_int_t index = ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &name, &cookie);
if (index != NGX_DECLINED) {
ngx_table_elt_t* cookie_header = ngx_http_parse_multi_header_lines(r, r->headers_in.cookie, &name, &cookie);
if (cookie_header != NULL) {
res = zauth_token_parse(cookie.data, cookie.len, &tkn);
}
}
Expand Down

0 comments on commit 7d5b70c

Please sign in to comment.