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

Commit 6397aad

Browse files
committed
Update FilePreHandler.java
1 parent 458a9d8 commit 6397aad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ktt/lib/httpserver/handler/FilePreHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,7 @@ public final void addDirectories(String context, File[] files, boolean walk, Fil
34043404
//
34053405

34063406
@Override
3407-
public final void handle(ExchangePacket packet) throws Exception {
3407+
public final void handle(ExchangePacket packet) throws IOException{
34083408
String rel = __.startSlash(URLDecoder.decode(packet.getRelativeContext(), StandardCharsets.UTF_8));
34093409

34103410
final _pair<File,byte[]> out = dat.get(rel);
@@ -3420,10 +3420,10 @@ public final void handle(ExchangePacket packet) throws Exception {
34203420
* @param packet a packet of data containing client information
34213421
* @param source the file requested by the user
34223422
* @param bytes the file's preloaded bytes
3423-
* @throws Exception a handler
3423+
* @throws IOException internal server error
34243424
* since 01.00.00
34253425
*/
3426-
public void handle(ExchangePacket packet, File source, byte[] bytes) throws Exception {
3426+
public void handle(ExchangePacket packet, File source, byte[] bytes) throws IOException{
34273427
packet.send(bytes);
34283428
}
34293429

0 commit comments

Comments
 (0)