diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2020-12-16 10:48:58 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-01-11 20:20:39 +0000 |
commit | 78ad25f06a00e099d277e26b634aaa593f5026ed (patch) | |
tree | e4bb7a0ed5a84d993069d9cdc01a7b6a642e8201 /server/sonar-webserver/src/main/java | |
parent | 6789a2ec09f916b67bb34400f332570d2ca26b94 (diff) | |
download | sonarqube-78ad25f06a00e099d277e26b634aaa593f5026ed.tar.gz sonarqube-78ad25f06a00e099d277e26b634aaa593f5026ed.zip |
SONAR-14212 Remove obsolete Sonar-Version HTTP header
Diffstat (limited to 'server/sonar-webserver/src/main/java')
-rw-r--r-- | server/sonar-webserver/src/main/java/org/sonar/server/platform/web/WebServiceFilter.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/WebServiceFilter.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/WebServiceFilter.java index b75718b7f72..91225b72daa 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/WebServiceFilter.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/web/WebServiceFilter.java @@ -51,9 +51,8 @@ public class WebServiceFilter extends ServletFilter { private final WebServiceEngine webServiceEngine; private final Set<String> includeUrls; private final Set<String> excludeUrls; - private final SonarRuntime runtime; - public WebServiceFilter(WebServiceEngine webServiceEngine, SonarRuntime runtime) { + public WebServiceFilter(WebServiceEngine webServiceEngine) { this.webServiceEngine = webServiceEngine; this.includeUrls = concat( Stream.of("/api/*"), @@ -67,7 +66,6 @@ public class WebServiceFilter extends ServletFilter { .filter(action -> action.handler() instanceof ServletFilterHandler) .map(toPath())) .collect(MoreCollectors.toSet()); - this.runtime = runtime; } @Override @@ -84,7 +82,6 @@ public class WebServiceFilter extends ServletFilter { HttpServletResponse response = (HttpServletResponse) servletResponse; ServletRequest wsRequest = new ServletRequest(request); ServletResponse wsResponse = new ServletResponse(response); - wsResponse.setHeader("Sonar-Version", runtime.getApiVersion().toString()); webServiceEngine.execute(wsRequest, wsResponse); } |