From 1117ee8c759b0000b180ba18da6939a194e0b78b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 31 Mar 2016 09:53:10 +1300 Subject: Remove unused variable in filter --- src/org/traccar/api/CorsResponseFilter.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/org/traccar/api/CorsResponseFilter.java b/src/org/traccar/api/CorsResponseFilter.java index 2b4262dc6..349580e2f 100644 --- a/src/org/traccar/api/CorsResponseFilter.java +++ b/src/org/traccar/api/CorsResponseFilter.java @@ -32,8 +32,6 @@ public class CorsResponseFilter implements ContainerResponseFilter { @Override public void filter(ContainerRequestContext request, ContainerResponseContext response) throws IOException { if (!response.getHeaders().containsKey(HttpHeaders.Names.ACCESS_CONTROL_ALLOW_HEADERS)) { - String headers = Context.getConfig().getString("web.origin"); - response.getHeaders().add(HttpHeaders.Names.ACCESS_CONTROL_ALLOW_HEADERS, HEADERS_ALL); } -- cgit v1.2.3