aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.c
Commit message (Collapse)AuthorAge
* Win32: $request_time fixed.Maxim Dounin2013-09-04
| | | | | | On win32, time_t is 64 bits wide by default, and passing an ngx_msec_int_t argument for %T format specifier doesn't work. This doesn't manifest itself on other platforms as time_t and ngx_msec_int_t are usually of the same size.
* Correctly handle multiple X-Forwarded-For headers (ticket #106).Ruslan Ermilov2013-02-27
|
* Fixed separator in $sent_http_cache_control.Ruslan Ermilov2013-02-27
| | | | | | In case multiple "Cache-Control" headers are sent to a client, multiple values in $sent_http_cache_control were incorrectly split by a semicolon. Now they are split by a comma.
* Proxy: support for connection upgrade (101 Switching Protocols).Maxim Dounin2013-02-18
| | | | | | | | | | | | | | This allows to proxy WebSockets by using configuration like this: location /chat/ { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } Connection upgrade is allowed as long as it was requested by a client via the Upgrade request header.
* Variables $pipe, $request_length, $time_iso8601, and $time_local.Ruslan Ermilov2013-01-21
| | | | | | Log module counterparts are preserved for efficiency. Based on patch by Kiril Kalchev.
* Added checks that disallow adding a variable with an empty name.Ruslan Ermilov2012-12-17
| | | | Added variable name syntax checks to "geo" and "map" directives.
* Request body: $content_length variable to honor real body size.Maxim Dounin2012-11-21
| | | | | This allows to handle requests with chunked body by fastcgi and uwsgi modules, and also simplifies handling of various request body modifications.
* Request body: $request_body variable generalization.Maxim Dounin2012-11-21
| | | | | | | The $request_body variable was assuming there can't be more than two buffers. While this is currently true due to request body reading implementation details, this is not a good thing to depend on and may change in the future.
* Variables $request_time and $msec.Ruslan Ermilov2012-11-16
| | | | Log module counterparts are preserved for efficiency.
* Variables $connection and $connection_requests.Maxim Dounin2012-10-29
| | | | | Log module counterparts are removed as they aren't used often and there is no need to preserve them for efficiency.
* Variable $bytes_sent.Maxim Dounin2012-10-03
| | | | | | | It replicates variable $bytes_sent as previously available in log module only. Patch by Benjamin Grössing (with minor changes).
* Fixed compile-time conditionals used to detect if X-Forwarded-For supportRuslan Ermilov2012-06-21
| | | | is needed.
* Style fix.Andrey Belov2012-06-18
|
* New core variable: $status.Andrey Belov2012-06-18
| | | | | | | | Contains response status code as a 3-digit integer (with leading zeroes if necessary), or one of the following values: 000 - response status code has not yet been assigned 009 - HTTP/0.9 request is being processed
* Fixed core variables dynamic access after reconfiguration.Maxim Dounin2012-05-17
| | | | | | | | If variable was indexed in previous configuration but not in current one, the NGX_HTTP_VAR_INDEXED flag was left set and confused ngx_http_get_variable(). Patch by Yichun Zhang (agentzh), slightly modified.
* Fixed spelling in multiline C comments.Ruslan Ermilov2012-04-03
|
* Fixed unconditional MAX_PATH usage (ticket #22).Maxim Dounin2012-03-27
| | | | | | POSIX doesn't require it to be defined, and Debian GNU/Hurd doesn't define it. Note that if there is no MAX_PATH defined we have to use realpath() with NULL argument and free() the result.
* Implemented $tcpinfo_rtt, $tcpinfo_rttvar, $tcpinfo_snd_cwnd, andRuslan Ermilov2012-03-16
| | | | $tcpinfo_rcv_space variables. Supported on Linux and FreeBSD.
* Slight optimization in ngx_http_get_variable_index().Ruslan Ermilov2012-03-15
|
* Variables: honor no_cacheable for not_found variables.Maxim Dounin2012-02-13
| | | | | | | | | | | | | Variables with the "not_found" flag set follow the same rules as ones with the "valid" flag set. Make sure ngx_http_get_flushed_variable() will flush non-cacheable variables with the "not_found" flag set. This fixes at least one known problem with $args not available in a subrequest (with args) when there were no args in the main request and $args variable was queried in the main request (reported by Laurence Rowe aka elro on irc). Also this eliminates unneeded call to ngx_http_get_indexed_variable() in cacheable case (as it will return cached value anyway).
* Copyright updated.Maxim Konovalov2012-01-18
|
* Fixed: some of $sent_http_* variables may contain header entries that actuallyValentin Bartenev2011-12-09
| | | | | | | | | haven't been sent to a client. The ngx_http_variable_headers() and ngx_http_variable_unknown_header() functions did not ignore response header entries with zero "hash" field. Thanks to Yichun Zhang (agentzh).
* Added the $https variable.Valentin Bartenev2011-12-09
|
* change ngx_http_map_find(): use case sensitive regexesIgor Sysoev2011-05-30
|
* allow regex as "map" parameterIgor Sysoev2011-03-16
|
* change ngx_http_variable_value_node_t to more generic ngx_str_node_tIgor Sysoev2010-06-23
|
* ngx_str_set() and ngx_str_null()Igor Sysoev2010-05-14
|
* change processing variables accessed by SSI and perl module:Igor Sysoev2010-04-22
| | | | | *) the indexed variables are always flushed *) never show warning for not found variables
* make $arg_ variables non-cacheableIgor Sysoev2010-04-22
|
* make $request_method non-cacheableIgor Sysoev2010-03-03
|
* fix $upstream_http_ variable prefix lengthIgor Sysoev2010-02-15
|
* named captures worked for two names onlyIgor Sysoev2010-01-11
|
* fix building without PCRE, the bug had been introduced in r3326Igor Sysoev2009-11-23
|
* evaluate maximum captures size on configuration phaseIgor Sysoev2009-11-16
|
* fix captures in "rewrite", the bug had been introduced in r3326Igor Sysoev2009-11-16
|
* regex named capturesIgor Sysoev2009-11-16
|
* fix segfault if $limit_rate was loggedIgor Sysoev2009-11-03
|
* use sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr"Igor Sysoev2009-11-02
|
* allow to log invalid $request in access_log always,Igor Sysoev2009-09-21
| | | | before it was logged only if error_log was set to info or debug level
* fix segfault introduced in r2845Igor Sysoev2009-05-22
|
* use ngx_connection_local_sockaddr() instead of ngx_http_server_addr()Igor Sysoev2009-05-18
|
* $request_body variableIgor Sysoev2009-05-14
|
* fix segfault introduced in r2486 in $sent_http_location processingIgor Sysoev2009-02-24
|
* small optimization: " == NGX_ERROR" > " != NGX_OK"Igor Sysoev2009-02-24
|
* axe r->port_textIgor Sysoev2009-02-24
|
* a prelimiary IPv6 support, HTTP listenIgor Sysoev2009-02-21
|
* fix $sent_http_location for local redirectsIgor Sysoev2009-01-30
|
* ngx_http_arg()Igor Sysoev2008-12-22
|
* $cookie_... variable did not for SSI and perlIgor Sysoev2008-12-01
|
* variable value rbtree supportIgor Sysoev2008-11-22
|