From b8d009ea45be4464eec6028dbb28084dc988639f Mon Sep 17 00:00:00 2001 From: John Bauer Date: Thu, 7 Nov 2024 00:50:54 -0800 Subject: [PATCH] add loading.gif as well --- src/edu/stanford/nlp/pipeline/StanfordCoreNLPServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/edu/stanford/nlp/pipeline/StanfordCoreNLPServer.java b/src/edu/stanford/nlp/pipeline/StanfordCoreNLPServer.java index 1c81dda316..fb89df926d 100644 --- a/src/edu/stanford/nlp/pipeline/StanfordCoreNLPServer.java +++ b/src/edu/stanford/nlp/pipeline/StanfordCoreNLPServer.java @@ -1809,6 +1809,8 @@ public void run(Optional> basicAuth, withAuth(server.createContext(uriContext+"/webfont.js", new BytesFileHandler("edu/stanford/nlp/pipeline/demo/webfont.js", "application/javascript")), basicAuth); withAuth(server.createContext(uriContext+"/img/corenlp-title.png", new BytesFileHandler("edu/stanford/nlp/pipeline/demo/corenlp-title.png", "image/png")), basicAuth); + withAuth(server.createContext(uriContext+"/img/loading.gif", new BytesFileHandler("edu/stanford/nlp/pipeline/demo/loading.gif", "image/gif")), basicAuth); + withAuth(server.createContext(uriContext+"/ping", new PingHandler()), Optional.empty()); withAuth(server.createContext(uriContext+"/shutdown", new ShutdownHandler()), basicAuth); if (this.serverPort == this.statusPort) {