Glenn Strauss
8e2cf55250
[core] redirect to dir using relative-path
...
Location response header is permitted to use relative-path in
RFC 7231 Section 7.1.2. Location
Prefer relative path in redirection for the benefit of reverse proxies
and CDNs. Doing so also avoids potentially disclosing internal schemes
and server names which client might not be able to directly reach.
To restore prior behavior of sending a fully-qualified absolute URI:
server.feature-flags += ("absolute-dir-redirect" => "enable")
x-ref:
https://bz.apache.org/bugzilla/show_bug.cgi?id=63357
2020-10-11 11:43:06 -04:00
Glenn Strauss
1593190651
[core] buffer_append_string_encoded() uc hex
...
Use uc hex chars in buffer_append_string_encoded(), preferred in RFC3986
Preserve behavior using lc hex chars in buffer_append_string_c_escaped()
2018-08-05 03:44:15 -04:00
Stefan Bühler
85d8a17575
[core] encode path with ENCODING_REL_URI in redirect to directory ( fixes #2661 , thx gstrauss)
...
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3052 152afb58-edef-0310-8abb-c4023f1b3aa9
2015-11-07 15:00:18 +00:00
Elan Ruusamäe
c65ad47a55
- change s/// separator that it doesn't confuse vim
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2027 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-15 22:03:59 +00:00
Marcus Rückert
b8df99f3db
- a few more whitespace cleanups
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1374 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-05 00:09:51 +00:00
Jan Kneschke
3ebc17571a
find perl at runtime
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@670 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-01 11:44:57 +00:00
Jan Kneschke
a44e7fc4c4
replace 'localhost' by gethostbyaddr for 127.0.0.1
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@669 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-09-01 11:12:05 +00:00
Jan Kneschke
7988661090
added tests for keep-alive and setenv and passed a ARRAY ref instead of a HASH ref
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@654 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-08-31 12:55:44 +00:00
Jan Kneschke
877161c067
switch to LigtyTest module
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@394 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-26 10:27:41 +00:00
Jan Kneschke
7a25f1b5f5
Unified all tests to use the LighyTest framework
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@388 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-15 09:37:18 +00:00
Jan Kneschke
7bca57bb6b
final fix for testcase and #177
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@378 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 09:18:17 +00:00
Jan Kneschke
5986add693
Quote ETag, fixes #117
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@376 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-06-12 09:09:28 +00:00
Jan Kneschke
b41aa700ab
check that conditionals and simple-vhost work together
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@91 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-04 13:10:35 +00:00
Jan Kneschke
40e8c6714a
seperated the tests for each section and let run-tests.pl use Test::Harness
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@72 152afb58-edef-0310-8abb-c4023f1b3aa9
2005-03-02 11:27:02 +00:00