Initialize servlet and fix paths

This commit is contained in:
René Pfeuffer
2018-09-06 15:33:24 +02:00
parent be5c430bd2
commit 4eb75bc621
15 changed files with 87 additions and 115 deletions

View File

@@ -66,7 +66,7 @@ public class HttpProtocolServlet extends HttpServlet {
try (RepositoryService repositoryService = serviceFactory.create(namespaceAndName)) {
requestProvider.get().setAttribute(DefaultRepositoryProvider.ATTRIBUTE_NAME, repositoryService.getRepository());
HttpScmProtocol protocol = repositoryService.getProtocol(HttpScmProtocol.class);
protocol.serve(req, resp);
protocol.serve(req, resp, getServletConfig());
} catch (RepositoryNotFoundException e) {
resp.setStatus(404);
}