diff --git a/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java b/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java
index ec9adcf46e..41a86f5bd2 100644
--- a/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java
+++ b/src/main/java/com/alibaba/druid/support/http/StatViewServlet.java
@@ -213,7 +213,7 @@ public class StatViewServlet extends HttpServlet {
}
if (isRequireAuth() && session.getAttribute(SESSION_USER_KEY) == null
- && !("/login.html".equals(path) || path.startsWith("/css") || path.startsWith("/js"))) {
+ && !("/login.html".equals(path) || path.startsWith("/css") || path.startsWith("/js") || path.startsWith("/img"))) {
if (contextPath == null || contextPath.equals("") || contextPath.equals("/")) {
response.sendRedirect("/login.html");
} else {
diff --git a/src/main/resources/support/http/resources/api.html b/src/main/resources/support/http/resources/api.html
index b205fcf02e..95fcbeec9f 100644
--- a/src/main/resources/support/http/resources/api.html
+++ b/src/main/resources/support/http/resources/api.html
@@ -3,85 +3,77 @@
Druid Stat JSON API
+
+
-
-
-
JSON API
-
-
-
- Name
- Description
-
-
-
- basic.json
- basic info.
-
-
- datasource.json
- DatsSourceStat List
-
-
- datasource-{id}.json
-
- DatasourceStat for id={id},id is DatsSourceStat.ID
- Example: druid/datasource-1.json
-
-
-
- activeConnectionStackTrace-{datasourceId}.json
-
- StrackTrace for activeConnection in datasource which datasource.id={datasourceId},id is DatsSourceStat.ID
+
+
+
+
+
+ JSON API
+
+
+
+
+ Name
+ Description
+
+
+
+ basic.json
+ basic info.
+
+
+ datasource.json
+ DatsSourceStat List
+
+
+ datasource-{id}.json
+ DatasourceStat for id={id},id is DatsSourceStat.ID
+ Example: druid/datasource-1.json
+
+
+ activeConnectionStackTrace-{datasourceId}.json
+ StrackTrace for activeConnection in datasource which datasource.id={datasourceId},id is DatsSourceStat.ID
Required: set removeAbandoned=true
- Example: druid/activeConnectionStackTrace-1.json
-
-
-
-
- sql.json
-
-
- SqlStat info List.
- orderBy=[ID|ExecuteCount|...|](every property without histogram in sqlstat object)
- orderType=[asc|desc] default is desc
- page=page count start with 1
- perPageCount=item count in one page,default is INTEGER.MAX_VALUE
-
-
-
- sql-{id}.json
-
- SqlStat for id={id} ,id is SqlStat.ID
- Example: druid/sql-1.json
-
-
-
- weburi.json
-
-
-
-
-
- websession.json
-
-
-
-
-
- reset-all.json
- Reset all stat
-
-
-
+ Example: druid/activeConnectionStackTrace-1.json
+
+
+ sql.json
+ SqlStat for id={id} ,id is SqlStat.ID
+ Example: druid/sql-1.json
+
+
+ basic.json
+
+
+
+ weburi.json
+
+
+
+
+ websession.json
+
+
+
+
+ reset-all.json
+ Reset all stat
+
+
+
+
+
+