Skip to content

Commit

Permalink
use java embed mine table
Browse files Browse the repository at this point in the history
  • Loading branch information
liuganghuan committed Oct 20, 2023
1 parent fe1d823 commit b7fa2ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/arloor/forwardproxy/web/Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
import org.slf4j.LoggerFactory;

import java.io.*;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.URLDecoder;
import java.net.*;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -117,7 +115,7 @@ public static void handle(HttpRequest request, ChannelHandlerContext ctx, boolea

private static void other(HttpRequest request, ChannelHandlerContext ctx, boolean ifNeedClose) {
String path = getPath(request);
String contentType = getContentType(path);
String contentType = URLConnection.getFileNameMap().getContentTypeFor(path);
try {
RandomAccessFile randomAccessFile = new RandomAccessFile(path, "r");
long fileLength = randomAccessFile.length();
Expand Down

0 comments on commit b7fa2ef

Please sign in to comment.