diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-31 09:53:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-31 09:53:10 +1300 |
commit | 1117ee8c759b0000b180ba18da6939a194e0b78b (patch) | |
tree | 267b0a7db154e4a7b727c4802e04e76e248c67c5 /src | |
parent | 82614e8ded7b854465cd842346e27ec2b82aacb3 (diff) | |
download | trackermap-server-1117ee8c759b0000b180ba18da6939a194e0b78b.tar.gz trackermap-server-1117ee8c759b0000b180ba18da6939a194e0b78b.tar.bz2 trackermap-server-1117ee8c759b0000b180ba18da6939a194e0b78b.zip |
Remove unused variable in filter
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/api/CorsResponseFilter.java | 2 |
1 files changed, 0 insertions, 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); } |