When following an HTTP redirect, use the Location header URL exactly.
Previously we canonicalized the redirect URL, which could lead to a redirect loop. Then Subversion would report a redirect loop as the error, potentially hiding a more interesting error such as when the target is not in fact a Subversion repository.
Return a better error message when connecting to an URL on a server that does not implement the DAV protocol.
* subversion/libsvn_ra_serf/options.c (options_context_t): New member received_dav_header. (capabilities_headers_iterator_callback): Set it if the HTTP response contains the DAV: header. (options_response_handler): Bail out early with a specific message if the server doesn't support DAV.
* subversion/tests/cmdline/dav_tests.py: New test fixture. * subversion/tests/cmdline/svntest/main.py (other_dav_root_dir, non_dav_root_dir): New global variable. (execute_tests): Initialize other_dav_root_dir and non_dav_root_dir. * subversion/tests/cmdline/svntest/actions.py (setup_pristine_greek_repository): Create the directories for other_dav_root_dir and non_dav_root_dir.
* subversion/tests/cmdline/davautocheck.sh: Load mod_dav_fs and configure httpd for dav_tests.py.