diff options
| author | 2011-11-12 11:09:00 +0000 | |
|---|---|---|
| committer | 2011-11-12 11:09:00 +0000 | |
| commit | e5f444907f27ebace3451e2b67ee6f223ce9957e (patch) | |
| tree | f76a10b73d18d4116de1ca34902bec6f6b1bd328 /usr.sbin/nginx/src/http/modules/ngx_http_empty_gif_module.c | |
| parent | update currency exchange rates; (diff) | |
| download | wireguard-openbsd-e5f444907f27ebace3451e2b67ee6f223ce9957e.tar.xz wireguard-openbsd-e5f444907f27ebace3451e2b67ee6f223ce9957e.zip | |
update to 1.0.9
Diffstat (limited to 'usr.sbin/nginx/src/http/modules/ngx_http_empty_gif_module.c')
| -rw-r--r-- | usr.sbin/nginx/src/http/modules/ngx_http_empty_gif_module.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.sbin/nginx/src/http/modules/ngx_http_empty_gif_module.c b/usr.sbin/nginx/src/http/modules/ngx_http_empty_gif_module.c index a896bd4b604..7cef538acb1 100644 --- a/usr.sbin/nginx/src/http/modules/ngx_http_empty_gif_module.c +++ b/usr.sbin/nginx/src/http/modules/ngx_http_empty_gif_module.c @@ -111,19 +111,12 @@ static ngx_str_t ngx_http_gif_type = ngx_string("image/gif"); static ngx_int_t ngx_http_empty_gif_handler(ngx_http_request_t *r) { - ngx_int_t rc; ngx_http_complex_value_t cv; if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) { return NGX_HTTP_NOT_ALLOWED; } - rc = ngx_http_discard_request_body(r); - - if (rc != NGX_OK) { - return rc; - } - ngx_memzero(&cv, sizeof(ngx_http_complex_value_t)); cv.value.len = sizeof(ngx_empty_gif); |
