aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-01 07:56:59 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-01 07:56:59 -0700
commit37564d458bb9d4bca9f1634bbe07e1102e0221cd (patch)
tree0b4b126893b26004deae06e99f827fd31b20430c /src/main/java/org
parenta19356db10b62592a565d5a073ee989e299a0aa1 (diff)
downloadtrackermap-server-37564d458bb9d4bca9f1634bbe07e1102e0221cd.tar.gz
trackermap-server-37564d458bb9d4bca9f1634bbe07e1102e0221cd.tar.bz2
trackermap-server-37564d458bb9d4bca9f1634bbe07e1102e0221cd.zip
No override for API path
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/web/OverrideFilter.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/web/OverrideFilter.java b/src/main/java/org/traccar/web/OverrideFilter.java
index 70eb80a67..6d20789f2 100644
--- a/src/main/java/org/traccar/web/OverrideFilter.java
+++ b/src/main/java/org/traccar/web/OverrideFilter.java
@@ -45,6 +45,11 @@ public class OverrideFilter implements Filter {
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
+ if (((HttpServletRequest) request).getServletPath().startsWith("/api")) {
+ chain.doFilter(request, response);
+ return;
+ }
+
ResponseWrapper wrappedResponse = new ResponseWrapper((HttpServletResponse) response);
chain.doFilter(request, wrappedResponse);