Remove unused code (#1991)

Remove unused code in DefaultBlockExceptionHandler#handle
This commit is contained in:
叶枫 2021-02-04 10:13:16 +08:00 committed by GitHub
parent fe59485fa9
commit a1eed7032f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -34,12 +34,6 @@ public class DefaultBlockExceptionHandler implements BlockExceptionHandler {
// Return 429 (Too Many Requests) by default.
response.setStatus(429);
StringBuffer url = request.getRequestURL();
if ("GET".equals(request.getMethod()) && StringUtil.isNotBlank(request.getQueryString())) {
url.append("?").append(request.getQueryString());
}
PrintWriter out = response.getWriter();
out.print("Blocked by Sentinel (flow limiting)");
out.flush();