max_ranges has no effect

2019-10-13 Thread Hett
Hello, I want to disable resumable downloads. Added max_ranges directive: location ~ ^(/[^/]+/[^/]+/[^/]+) { set $zone_limit_key $binary_remote_addr$host; limit_req zone=req_free burst=10 nodelay; limit_conn conn_free 1; max_ranges 0; rewrite ^/([^/]+)

read request body with http2

2019-10-13 Thread Ansuel
Hello, i'm developing a custom module that needs to read the request body to get some data from it. To read the request body i'm using ngx_http_read_client_request_body and in the callback i use for (in = r->request_body->bufs; in; in = in->next) { len = ngx_buf_size(