#970 added option to enable the experimental httppostargs protocol of mercurial

This commit is contained in:
Sebastian Sdorra
2018-03-29 22:14:28 +02:00
parent 8aaa67cd6a
commit a34acd8ed4
4 changed files with 45 additions and 11 deletions

View File

@@ -87,6 +87,8 @@ public class HgCGIServlet extends HttpServlet
/** Field description */
public static final String ENV_REPOSITORY_PATH = "SCM_REPOSITORY_PATH";
private static final String ENV_HTTP_POST_ARGS = "SCM_HTTP_POST_ARGS";
/** Field description */
public static final String ENV_SESSION_PREFIX = "SCM_";
@@ -278,11 +280,15 @@ public class HgCGIServlet extends HttpServlet
environment.put(ENV_PYTHON_HTTPS_VERIFY, "0");
}
// enable experimental httppostargs protocol of mercurial
// Issue 970: https://goo.gl/poascp
environment.put(ENV_HTTP_POST_ARGS, String.valueOf(handler.getConfig().isEnableHttpPostArgs()));
//J-
HgEnvironment.prepareEnvironment(
environment,
handler,
hookManager,
hookManager,
request
);
//J+