Mercurial > hg > nginx
comparison src/http/modules/ngx_http_range_filter_module.c @ 4058:d32a2000b766
ngx_http_range_parse() should be static.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 30 Aug 2011 13:07:33 +0000 |
parents | 3205a6d6c6ec |
children | cc72e6229416 |
comparison
equal
deleted
inserted
replaced
4057:3205a6d6c6ec | 4058:d32a2000b766 |
---|---|
56 ngx_str_t boundary_header; | 56 ngx_str_t boundary_header; |
57 ngx_array_t ranges; | 57 ngx_array_t ranges; |
58 } ngx_http_range_filter_ctx_t; | 58 } ngx_http_range_filter_ctx_t; |
59 | 59 |
60 | 60 |
61 ngx_int_t ngx_http_range_parse(ngx_http_request_t *r, | 61 static ngx_int_t ngx_http_range_parse(ngx_http_request_t *r, |
62 ngx_http_range_filter_ctx_t *ctx); | 62 ngx_http_range_filter_ctx_t *ctx); |
63 static ngx_int_t ngx_http_range_singlepart_header(ngx_http_request_t *r, | 63 static ngx_int_t ngx_http_range_singlepart_header(ngx_http_request_t *r, |
64 ngx_http_range_filter_ctx_t *ctx); | 64 ngx_http_range_filter_ctx_t *ctx); |
65 static ngx_int_t ngx_http_range_multipart_header(ngx_http_request_t *r, | 65 static ngx_int_t ngx_http_range_multipart_header(ngx_http_request_t *r, |
66 ngx_http_range_filter_ctx_t *ctx); | 66 ngx_http_range_filter_ctx_t *ctx); |
228 | 228 |
229 return ngx_http_next_header_filter(r); | 229 return ngx_http_next_header_filter(r); |
230 } | 230 } |
231 | 231 |
232 | 232 |
233 ngx_int_t | 233 static ngx_int_t |
234 ngx_http_range_parse(ngx_http_request_t *r, ngx_http_range_filter_ctx_t *ctx) | 234 ngx_http_range_parse(ngx_http_request_t *r, ngx_http_range_filter_ctx_t *ctx) |
235 { | 235 { |
236 u_char *p; | 236 u_char *p; |
237 off_t start, end, size, content_length; | 237 off_t start, end, size, content_length; |
238 ngx_uint_t suffix; | 238 ngx_uint_t suffix; |