Fix compilation errors

Related commit:
381cf3fc60
This commit is contained in:
Trustin Lee 2015-02-03 21:21:39 +09:00
parent 381cf3fc60
commit 5a7875806c
4 changed files with 12 additions and 4 deletions

View File

@ -16,6 +16,7 @@
package io.netty.handler.codec.http;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.TooLongFrameException;
@ -84,7 +85,8 @@ public class HttpRequestDecoder extends HttpObjectDecoder {
@Override
protected HttpMessage createInvalidMessage() {
return new DefaultFullHttpRequest(HttpVersion.HTTP_1_0, HttpMethod.GET, "/bad-request", validateHeaders);
return new DefaultFullHttpRequest(
HttpVersion.HTTP_1_0, HttpMethod.GET, "/bad-request", Unpooled.EMPTY_BUFFER, validateHeaders);
}
@Override

View File

@ -16,6 +16,7 @@
package io.netty.handler.codec.http;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.TooLongFrameException;
@ -115,7 +116,8 @@ public class HttpResponseDecoder extends HttpObjectDecoder {
@Override
protected HttpMessage createInvalidMessage() {
return new DefaultFullHttpResponse(HttpVersion.HTTP_1_0, UNKNOWN_STATUS, validateHeaders);
return new DefaultFullHttpResponse(
HttpVersion.HTTP_1_0, UNKNOWN_STATUS, Unpooled.EMPTY_BUFFER, validateHeaders);
}
@Override

View File

@ -16,6 +16,7 @@
package io.netty.handler.codec.rtsp;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.TooLongFrameException;
import io.netty.handler.codec.http.DefaultFullHttpRequest;
import io.netty.handler.codec.http.DefaultHttpRequest;
@ -79,7 +80,8 @@ public class RtspRequestDecoder extends RtspObjectDecoder {
@Override
protected HttpMessage createInvalidMessage() {
return new DefaultFullHttpRequest(RtspVersions.RTSP_1_0, RtspMethods.OPTIONS, "/bad-request", validateHeaders);
return new DefaultFullHttpRequest(
RtspVersions.RTSP_1_0, RtspMethods.OPTIONS, "/bad-request", Unpooled.EMPTY_BUFFER, validateHeaders);
}
@Override

View File

@ -16,6 +16,7 @@
package io.netty.handler.codec.rtsp;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.TooLongFrameException;
import io.netty.handler.codec.http.DefaultFullHttpResponse;
import io.netty.handler.codec.http.DefaultHttpResponse;
@ -84,7 +85,8 @@ public class RtspResponseDecoder extends RtspObjectDecoder {
@Override
protected HttpMessage createInvalidMessage() {
return new DefaultFullHttpResponse(RtspVersions.RTSP_1_0, UNKNOWN_STATUS, validateHeaders);
return new DefaultFullHttpResponse(
RtspVersions.RTSP_1_0, UNKNOWN_STATUS, Unpooled.EMPTY_BUFFER, validateHeaders);
}
@Override