aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-29 12:16:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-29 12:16:09 +1200
commit88c95715221d78d834aef23a20be437eceee8006 (patch)
tree610fc156c7c668ad803338390653f653381ef811 /src/org/traccar/protocol
parent4315f0dc46e0c09e945658a6c47ce45ba576641d (diff)
downloadtrackermap-server-88c95715221d78d834aef23a20be437eceee8006.tar.gz
trackermap-server-88c95715221d78d834aef23a20be437eceee8006.tar.bz2
trackermap-server-88c95715221d78d834aef23a20be437eceee8006.zip
Replace Jetty import with Netty alternative
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index 5d59c3b41..f9f04d7e3 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -15,9 +15,9 @@
*/
package org.traccar.protocol;
-import org.eclipse.jetty.http.HttpHeader;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.handler.codec.http.DefaultHttpResponse;
+import org.jboss.netty.handler.codec.http.HttpHeaders;
import org.jboss.netty.handler.codec.http.HttpRequest;
import org.jboss.netty.handler.codec.http.HttpResponse;
import org.jboss.netty.handler.codec.http.HttpResponseStatus;
@@ -45,7 +45,7 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
private void sendResponse(Channel channel, HttpResponseStatus status) {
if (channel != null) {
HttpResponse response = new DefaultHttpResponse(HttpVersion.HTTP_1_1, status);
- response.headers().add(HttpHeader.CONTENT_LENGTH.asString(), 0);
+ response.headers().add(HttpHeaders.Names.CONTENT_LENGTH, 0);
channel.write(response);
}
}