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

Commit

Permalink
Update FilePreHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Feb 15, 2020
1 parent 458a9d8 commit 6397aad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ktt/lib/httpserver/handler/FilePreHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -3404,7 +3404,7 @@ public final void addDirectories(String context, File[] files, boolean walk, Fil
//

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

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

Expand Down

0 comments on commit 6397aad

Please sign in to comment.