A potential fix for #931. I have not yet validated it, and want a test for this.
Fix #890

This patch addresses the problem described in bug #890.
Sadly the solution works around an architectural issue.
When parsing the headers, Cherokee checks if a handler
supports Content Range. Typically CGI doesn't but when
in the reply X-Sendfile is found the option is set,
based on the fact that handler_file does.

The latter is too late, because the header is already
parsed, since the parsing didn't set the range,
handler_file is unaware and doesn't set it. This first
commit is to show and solve the problem.
Only when X-Sendfile is selected for this handler, we are going to advertise range.
Fix #880

It is a good thing Cherokee allows to clone rules. Currently
cloning the default rule, creates a duplicate where the match
section cannot be changed. Obviously this is not expected.
This improvement fakes a default behavior by the request match
with regular expression /.*

Ideally we might need an any match, which helps with a global
configuration option implemented by a non-final, any match.
Think of the use case of protecting the entire virtual server
with a password.
Fix the whitespace.
...then directly fix all whitespace.
Merge pull request #1040 from cherokee/fix_cgi_xsendfile

Fix cgi xsendfile
Merge pull request #1041 from cherokee/fix_default_rule_clone

Fix #880
RESOLV_CACHE: Correct construction of ip_str_all

The construction of ip_str_all in the cache entries was incorrect,
repeating the first entry twice and failing to pass the correct family
in for subsequent entries.  This fixes both of these issues.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
A potential fix for #931. I have not yet validated it, and want a test for this.
Implemented a test for #931
Merge branch 'fix_ipv6_xrealip' of github.com:cherokee/webserver into fix_ipv6_xrealip
Merge pull request #1042 from cherokee/fix_ipv6_xrealip

Fix ipv6 xrealip
SOURCE: Cycle through addresses for a source

Since getaddrinfo() can return multiple addresses for a given name, this patch
allows a source to cycle through all of them should it get connection refused
errors.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
SOURCE_INTERPRETER: Reset address cycle on spawn

If a source interpreter has to be spawned then reset the address cycle on the
source object so that it has a chance to try all possible addresses once more.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Merge pull request #1043 from kinnison/kinnison/fix_879

Thanks a million to first time committer @kinnison to send in this pull request!
It is clear it is a fix for #630 #796 #885 #879 and might solve other tickets as well.