StaticModule: Only attempt to parse polygerrit parameter on GET
Attempting to parse parameters on POST/PUT fails with BadMessageException. This occurs for example when making any POST/PUT request to the REST API via the command line. Bug: Issue 6853 Change-Id: I774f1d41b040d2f283804f0394654530e1138cbb
This commit is contained in:
@@ -491,7 +491,7 @@ public class StaticModule extends ServletModule {
|
||||
|
||||
private boolean handlePolyGerritParam(HttpServletRequest req, HttpServletResponse res)
|
||||
throws IOException {
|
||||
if (!options.enableGwtUi()) {
|
||||
if (!options.enableGwtUi() || !"GET".equals(req.getMethod())) {
|
||||
return false;
|
||||
}
|
||||
boolean redirect = false;
|
||||
|
||||
Reference in New Issue
Block a user