File tree Expand file tree Collapse file tree
simplewebserver-lambda-function-impl
simplewebserver-servlet-api-impl
src/main/java/com/hibegin/http/server/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <groupId >com.hibegin</groupId >
44 <artifactId >simplewebserver-parent</artifactId >
55 <modelVersion >4.0.0</modelVersion >
6- <version >4.1.6 </version >
6+ <version >4.1.7 </version >
77 <packaging >pom</packaging >
88 <modules >
99 <module >simplewebserver</module >
164164 <dependency >
165165 <groupId >com.hibegin</groupId >
166166 <artifactId >simplewebserver</artifactId >
167- <version >4.1.6 </version >
167+ <version >4.1.7 </version >
168168 </dependency >
169169 <dependency >
170170 <groupId >com.hibegin</groupId >
171171 <artifactId >simplewebserver-servlet-api-impl</artifactId >
172- <version >4.1.6 </version >
172+ <version >4.1.7 </version >
173173 </dependency >
174174 <dependency >
175175 <groupId >com.google.code.gson</groupId >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.hibegin</groupId >
88 <artifactId >simplewebserver-parent</artifactId >
9- <version >4.1.6 </version >
9+ <version >4.1.7 </version >
1010 </parent >
1111
1212 <artifactId >simplewebserver-lambda-function-impl</artifactId >
2929 </dependency >
3030 </dependencies >
3131
32- </project >
32+ </project >
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.hibegin</groupId >
55 <artifactId >simplewebserver-parent</artifactId >
6- <version >4.1.6 </version >
6+ <version >4.1.7 </version >
77 </parent >
88 <artifactId >simplewebserver-servlet-api-impl</artifactId >
99 <modelVersion >4.0.0</modelVersion >
2727 </dependency >
2828 </dependencies >
2929
30- </project >
30+ </project >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >com.hibegin</groupId >
88 <artifactId >simplewebserver-parent</artifactId >
9- <version >4.1.6 </version >
9+ <version >4.1.7 </version >
1010 </parent >
1111
1212 <artifactId >simplewebserver-ssl</artifactId >
2222 </dependency >
2323 </dependencies >
2424
25- </project >
25+ </project >
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >com.hibegin</groupId >
55 <artifactId >simplewebserver-parent</artifactId >
6- <version >4.1.6 </version >
6+ <version >4.1.7 </version >
77 </parent >
88
99 <artifactId >simplewebserver</artifactId >
109109 </plugins >
110110 </build >
111111
112- </project >
112+ </project >
Original file line number Diff line number Diff line change @@ -370,6 +370,9 @@ protected byte[] toCloseChunkedBytes() throws IOException {
370370
371371 private void write (InputStream inputStream , int code , long bodyLength ) {
372372 try {
373+ if (Objects .isNull (inputStream ) && bodyLength < 0 ) {
374+ bodyLength = 0 ;
375+ }
373376 //处理流,避免不传输实际的文件大小
374377 if (Objects .nonNull (inputStream ) && inputStream instanceof FileInputStream ) {
375378 FileInputStream fin = (FileInputStream ) inputStream ;
You can’t perform that action at this time.
0 commit comments