Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(s.contains("/index.html")){
- System.out.println("200 OK");
- /* try {
- Stream<String> lines = Files.lines(path);
- lines.forEach(demo -> out.println(demo));
- } catch (IOException ex) {
- }*/
- out.println(new String(Files.readAllBytes(path)));
- //out.println(new String(readAllBytes(get(path))));
- }else{
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement