Skip to content

Commit 40309e3

Browse files
committed
Update the version to be 1.0.8
1 parent da7bcc8 commit 40309e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<name>netty http server module</name>
77
<groupId>org.tinystruct</groupId>
88
<artifactId>tinystruct-netty-http-server</artifactId>
9-
<version>1.0.7</version>
9+
<version>1.0.8</version>
1010
<description>A tinystruct-based module to enable netty http server support.</description>
1111
<url>https://tinystruct.org</url>
1212
<licenses>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected void channelRead0(ChannelHandlerContext ctx, FullHttpRequest original)
9696
String maxAge = configuration.getOrDefault("cors.preflight.maxage", "3600");
9797
response.headers().set(HttpHeaderNames.ACCESS_CONTROL_MAX_AGE, maxAge);
9898

99-
response.headers().set(HttpHeaderNames.CONTENT_LENGTH, -1);
99+
response.headers().set(HttpHeaderNames.CONTENT_LENGTH, 0);
100100
ctx.writeAndFlush(response).addListener(ChannelFutureListener.CLOSE);
101101
return;
102102
}

0 commit comments

Comments
 (0)