nginx/src
Piotr Sikora 32e3d0e693 Proxy: split configured header names and values.
Previously, each configured header was represented in one of two ways,
depending on whether or not its value included any variables.

If the value didn't include any variables, then it would be represented
as as a single script that contained complete header line with HTTP/1.1
delimiters, i.e.:

     "Header: value\r\n"

But if the value included any variables, then it would be represented
as a series of three scripts: first contained header name and the ": "
delimiter, second evaluated to header value, and third contained only
"\r\n", i.e.:

     "Header: "
     "$value"
     "\r\n"

This commit changes that, so that each configured header is represented
as a series of two scripts: first contains only header name, and second
contains (or evaluates to) only header value, i.e.:

    "Header"
    "$value"

or

    "Header"
    "value"

This not only makes things more consistent, but also allows header name
and value to be accessed separately.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2017-03-15 15:55:35 -07:00
..
core Version bump. 2017-07-03 16:58:08 +03:00
event Fixed deferred accept with EPOLLRDHUP enabled (ticket #1278). 2017-05-24 13:17:08 +03:00
http Proxy: split configured header names and values. 2017-03-15 15:55:35 -07:00
mail Style: changed checks of ngx_ssl_create_connection() to != NGX_OK. 2017-05-29 16:34:35 +03:00
misc Style: fix typo. 2014-07-08 03:03:14 -07:00
os Style. 2017-06-01 16:49:14 +03:00
stream Style: changed checks of ngx_ssl_create_connection() to != NGX_OK. 2017-05-29 16:34:35 +03:00