Mercurial > hg > nginx
comparison src/http/modules/ngx_http_uwsgi_module.c @ 4015:e0a435f5f504
Fix ignored headers handling in fastcgi/scgi/uwsgi.
The bug had appeared in r3561 (fastcgi), r3638 (scgi), r3567 (uwsgi).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 19 Aug 2011 20:11:39 +0000 |
parents | 215fe9223419 |
children | 9d59a8eda373 |
comparison
equal
deleted
inserted
replaced
4014:234907e676a5 | 4015:e0a435f5f504 |
---|---|
587 | 587 |
588 allocated = 0; | 588 allocated = 0; |
589 lowcase_key = NULL; | 589 lowcase_key = NULL; |
590 | 590 |
591 if (uwcf->header_params) { | 591 if (uwcf->header_params) { |
592 ignored = ngx_palloc(r->pool, uwcf->header_params * sizeof(void *)); | 592 n = 0; |
593 part = &r->headers_in.headers.part; | |
594 | |
595 while (part) { | |
596 n += part->nelts; | |
597 part = part->next; | |
598 } | |
599 | |
600 ignored = ngx_palloc(r->pool, n * sizeof(void *)); | |
593 if (ignored == NULL) { | 601 if (ignored == NULL) { |
594 return NGX_ERROR; | 602 return NGX_ERROR; |
595 } | 603 } |
596 } | 604 } |
597 | 605 |