Mercurial > hg > nginx
comparison src/http/modules/ngx_http_uwsgi_module.c @ 7321:45e513c3540d
Fixed invalid access to location defined as an empty string.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 17 Jul 2018 15:30:43 +0300 |
parents | 696df3ac27ac |
children | b9b3518fa93b |
comparison
equal
deleted
inserted
replaced
7320:696df3ac27ac | 7321:45e513c3540d |
---|---|
2142 uwcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); | 2142 uwcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); |
2143 if (uwcf->upstream.upstream == NULL) { | 2143 if (uwcf->upstream.upstream == NULL) { |
2144 return NGX_CONF_ERROR; | 2144 return NGX_CONF_ERROR; |
2145 } | 2145 } |
2146 | 2146 |
2147 if (clcf->name.data[clcf->name.len - 1] == '/') { | 2147 if (clcf->name.len && clcf->name.data[clcf->name.len - 1] == '/') { |
2148 clcf->auto_redirect = 1; | 2148 clcf->auto_redirect = 1; |
2149 } | 2149 } |
2150 | 2150 |
2151 return NGX_CONF_OK; | 2151 return NGX_CONF_OK; |
2152 } | 2152 } |