Skip to content

Commit 0c4ce33

Browse files
committed
Remove METHOD from context.
1 parent 6f06cd7 commit 0c4ce33

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/org/tinystruct/handler/HttpRequestHandler.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import static io.netty.handler.codec.http.HttpResponseStatus.OK;
3535
import static io.netty.handler.codec.http.HttpVersion.HTTP_1_1;
3636
import static org.tinystruct.Application.LANGUAGE;
37-
import static org.tinystruct.Application.METHOD;
3837
import static org.tinystruct.http.Constants.*;
3938
import static org.tinystruct.http.Header.SET_COOKIE;
4039

@@ -117,7 +116,6 @@ private void service(final ChannelHandlerContext ctx, final Request<FullHttpRequ
117116
}
118117

119118
context.setAttribute(HTTP_HOST, http_protocol + hostName + url_prefix);
120-
context.setAttribute(METHOD, request.method());
121119
context.setAttribute(HTTP_REQUEST, request);
122120
context.setAttribute(HTTP_RESPONSE, response);
123121

0 commit comments

Comments
 (0)