The official NGINX Open Source repository.
Go to file
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
auto Configure: fixed clang detection on MINIX. 2017-11-23 16:33:40 +03:00
conf MIME: added most common OpenDocument types. 2017-10-02 19:07:01 +03:00
contrib Contrib: proper syntax parsing in vim syntax highlighting. 2017-05-22 16:34:47 +03:00
docs nginx-1.13.7-RELEASE 2017-11-21 18:09:43 +03:00
misc Updated OpenSSL used for win32 builds. 2017-11-21 17:32:12 +03:00
src Proxy: escape explicit space in URI in default cache key. 2017-11-20 20:50:35 +03:00
.hgtags release-1.13.7 tag 2017-11-21 18:09:44 +03:00