Mercurial > hg > nginx
changeset 5856:1b8459a53e4b
Avoided to add duplicate hash key in ngx_http_types_slot().
author | Gu Feng <flygoast@126.com> |
---|---|
date | Wed, 17 Sep 2014 22:52:02 +0800 |
parents | a0a14319968b |
children | 2cb5275bf5e7 |
files | src/http/ngx_http.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http.c Mon Sep 22 19:48:23 2014 +0400 +++ b/src/http/ngx_http.c Wed Sep 17 22:52:02 2014 +0800 @@ -2005,7 +2005,7 @@ if (ngx_strcmp(value[i].data, type[n].key.data) == 0) { ngx_conf_log_error(NGX_LOG_WARN, cf, 0, "duplicate MIME type \"%V\"", &value[i]); - continue; + goto next; } } @@ -2017,6 +2017,10 @@ type->key = value[i]; type->key_hash = hash; type->value = (void *) 4; + + next: + + continue; } return NGX_CONF_OK;