Some small fixes

This commit is contained in:
Ziver Koc 2020-11-10 18:27:46 +01:00
parent f7b9a08e43
commit 1c1ef5ab66
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ public class HttpPrintStream extends OutputStream {
}
/**
* @return true if headers has been sent. The setHeader, setStatusCode, setCookie method will throw IllegalStateException
* @return true if headers has been sent. The setHeader, setResponseStatusCode, setCookie method will throw IllegalStateException
*/
public boolean isHeaderSent() {
return header == null;

View file

@ -93,7 +93,7 @@ public class HttpServer extends ThreadedTCPNetworkServer{
ScheduledExecutorService exec = Executors.newSingleThreadScheduledExecutor();
exec.scheduleWithFixedDelay(new SessionGarbageCollector(), 10000, SESSION_TTL / 2, TimeUnit.MILLISECONDS);
logger.info("HTTP"+(keyStore==null?"":"S")+" Server ready!");
logger.info("HTTP"+(keyStore==null ? "" : "S")+" Server ready and listening to port: " + port);
}
/**