Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 7737242

Browse files
committed
Fixed #1
1 parent 952c9df commit 7737242

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ktt/lib/httpserver/RequestHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ final void _consume(ExchangePacket packet) {
3737
handle(packet);
3838
} catch (IOException e) {
3939
throw new UncheckedIOException(e);
40+
} catch (Exception e) {
41+
throw new RuntimeException(e);
4042
}
4143
}else{
4244
try {
4345
packet.send(HTTPCode.HTTP_Unauthorized);
4446
} catch (IOException e) {
4547
throw new UncheckedIOException(e);
48+
} catch (Exception e) {
49+
throw new RuntimeException(e);
4650
}
4751
}
4852
packet.close();

0 commit comments

Comments
 (0)