Skip to content

Commit 6ac01a2

Browse files
committed
fixed expire variable init
1 parent 8c54492 commit 6ac01a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngx_http_hmac_secure_link_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ ngx_http_secure_link_variable(ngx_http_request_t *r,
236236

237237
ngx_http_set_ctx(r, ctx, ngx_http_hmac_secure_link_module);
238238

239-
ctx->expires.len = value.len;
240-
ctx->expires.data = value.data;
239+
ctx->expires.len = last - p;
240+
ctx->expires.data = p;
241241
}
242242
}
243243

0 commit comments

Comments
 (0)