Remove redundant calls to toString()
This commit is contained in:
parent
01fa0a56ea
commit
55e2ac4ebe
|
@ -858,7 +858,7 @@ public abstract class NanoHTTPD {
|
|||
this.tempFileManager = tempFileManager;
|
||||
this.inputStream = new PushbackInputStream(inputStream, BUFSIZE);
|
||||
this.outputStream = outputStream;
|
||||
String remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress().toString();
|
||||
String remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress();
|
||||
headers = new ArrayMap<>();
|
||||
|
||||
headers.put("remote-addr", remoteIp);
|
||||
|
|
Loading…
Reference in New Issue