Redirection middleware was incorrectly configured, causing 301 redirects for trailing slash URLs to fail.
(eg. /oai => /oai/)
This commit also substantially modifies the test ProviderServer so it can be extended for tests requiring a real (but differently behaving) server. The resulting should also be easier to understand.
Redirection middleware was incorrectly configured, causing 301 redirects for trailing slash URLs to fail. (eg.
/oai
=>/oai/
)This commit also substantially modifies the test ProviderServer so it can be extended for tests requiring a real (but differently behaving) server. The resulting should also be easier to understand.