diff options
author | Anton Tananaev <anton@traccar.org> | 2023-07-01 07:56:59 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-07-01 07:56:59 -0700 |
commit | 37564d458bb9d4bca9f1634bbe07e1102e0221cd (patch) | |
tree | 0b4b126893b26004deae06e99f827fd31b20430c /src/main | |
parent | a19356db10b62592a565d5a073ee989e299a0aa1 (diff) | |
download | trackermap-server-37564d458bb9d4bca9f1634bbe07e1102e0221cd.tar.gz trackermap-server-37564d458bb9d4bca9f1634bbe07e1102e0221cd.tar.bz2 trackermap-server-37564d458bb9d4bca9f1634bbe07e1102e0221cd.zip |
No override for API path
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/web/OverrideFilter.java | 5 |
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); |