diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 20:32:43 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-27 20:32:43 +0000 |
| commit | 86b915901a7174298c4997004b562a75726a1068 (patch) | |
| tree | 60063af33b3d1bbdd77706933c1946c70e951732 /src/http/modules/ngx_http_static_module.c | |
| parent | ce5d6e3237bf57f8773c00178e166c8e7cfe986c (diff) | |
| download | nginx-86b915901a7174298c4997004b562a75726a1068.tar.gz nginx-86b915901a7174298c4997004b562a75726a1068.tar.bz2 | |
optimization
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_static_module.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c index cfc708916..c4e688ffb 100644 --- a/src/http/modules/ngx_http_static_module.c +++ b/src/http/modules/ngx_http_static_module.c @@ -102,10 +102,9 @@ ngx_http_static_handler(ngx_http_request_t *r) of.errors = clcf->open_file_cache_errors; of.events = clcf->open_file_cache_events; - rc = ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool); - - if (rc == NGX_ERROR) { - + if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) + != NGX_OK) + { switch (of.err) { case 0: |
