I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 67cd6409 authored by zzz's avatar zzz
Browse files

EepHead: Don't output null values in CLI

parent 65d0ea3f
No related branches found
No related tags found
No related merge requests found
......@@ -139,10 +139,16 @@ public class EepHead extends EepGet {
get.addAuthorization(username, password);
}
if (get.fetch(45*1000, -1, inactivityTimeout)) {
System.err.println("Content-Type: " + get.getContentType());
String x = get.getContentType();
if (x != null)
System.err.println("Content-Type: " + x);
System.err.println("Content-Length: " + get.getContentLength());
System.err.println("Last-Modified: " + get.getLastModified());
System.err.println("Etag: " + get.getETag());
x = get.getLastModified();
if (x != null)
System.err.println("Last-Modified: " + x);
x = get.getETag();
if (x != null)
System.err.println("Etag: " + x);
} else {
System.err.println("Failed " + url);
System.exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment