Fix RequestCleanup bug with Git over HTTP
Decide if a continution is going to be used early, before the filter that will attempt to cleanup a RequestCleanup. If so don't allow entering the RequestCleanup part of the system until the request is actually going to be processed. Change-Id: I1fd3c97beefccc1cb4f0aed037c96a4bdaf78ff1
This commit is contained in:
@@ -354,6 +354,9 @@ public class Daemon extends SiteProgram {
|
||||
|
||||
private Injector createWebInjector() {
|
||||
final List<Module> modules = new ArrayList<Module>();
|
||||
if (sshd) {
|
||||
modules.add(new ProjectQoSFilter.Module());
|
||||
}
|
||||
modules.add(RequestContextFilter.module());
|
||||
modules.add(AllRequestFilter.module());
|
||||
modules.add(CacheBasedWebSession.module());
|
||||
@@ -363,7 +366,6 @@ public class Daemon extends SiteProgram {
|
||||
modules.add(new HttpPluginModule());
|
||||
if (sshd) {
|
||||
modules.add(sshInjector.getInstance(WebSshGlueModule.class));
|
||||
modules.add(new ProjectQoSFilter.Module());
|
||||
} else {
|
||||
modules.add(new NoSshModule());
|
||||
}
|
||||
|
Reference in New Issue
Block a user