Mercurial > hg > nginx
comparison src/http/modules/ngx_http_stub_status_module.c @ 6306:b1858fc47e3b
Style: unified request method checks.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 06 Nov 2015 15:22:43 +0300 |
parents | f5b612019042 |
children | 2a288909abc6 |
comparison
equal
deleted
inserted
replaced
6305:18428f775b2c | 6306:b1858fc47e3b |
---|---|
87 ngx_int_t rc; | 87 ngx_int_t rc; |
88 ngx_buf_t *b; | 88 ngx_buf_t *b; |
89 ngx_chain_t out; | 89 ngx_chain_t out; |
90 ngx_atomic_int_t ap, hn, ac, rq, rd, wr, wa; | 90 ngx_atomic_int_t ap, hn, ac, rq, rd, wr, wa; |
91 | 91 |
92 if (r->method != NGX_HTTP_GET && r->method != NGX_HTTP_HEAD) { | 92 if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) { |
93 return NGX_HTTP_NOT_ALLOWED; | 93 return NGX_HTTP_NOT_ALLOWED; |
94 } | 94 } |
95 | 95 |
96 rc = ngx_http_discard_request_body(r); | 96 rc = ngx_http_discard_request_body(r); |
97 | 97 |