nginx/src
Roman Arutyunyan 6754a40466 Proxy: escape explicit space in URI in default cache key.
If the flag space_in_uri is set, the URI in HTTP upstream request is escaped to
convert space to %20.  However this flag is not checked while creating the
default cache key.  This leads to different cache keys for requests
'/foo bar' and '/foo%20bar', while the upstream requests are identical.

Additionally, the change fixes background cache updates when the client URI
contains unescaped space.  Default cache key in a subrequest is always based on
escaped URI, while the main request may not escape it.  As a result, background
cache update subrequest may update a different cache entry.
2017-11-20 20:50:35 +03:00
..
core Fixed "changing binary" when reaper is not init. 2017-11-28 12:00:24 +03:00
event SSL: include <openssl/hmac.h>. 2017-10-11 15:43:50 -07:00
http Proxy: escape explicit space in URI in default cache key. 2017-11-20 20:50:35 +03:00
mail Fixed worker_shutdown_timeout in various cases. 2017-11-20 16:31:07 +03:00
misc Style: aligned ngx_null_command. 2017-07-12 11:34:04 +03:00
os Removed unused FreeBSD-specific definitions in ngx_posix_config.h. 2017-11-28 13:09:54 +03:00
stream Fixed worker_shutdown_timeout in various cases. 2017-11-20 16:31:07 +03:00