|
|
|
@ -115,9 +115,6 @@ public class ViewFile {
|
|
|
|
|
// get the url hash from which the content should be loaded
|
|
|
|
|
String urlHash = post.get("urlHash", post.get("urlhash", ""));
|
|
|
|
|
|
|
|
|
|
if (urlHash.length() == 0) {
|
|
|
|
|
// alternatively, get the url simply from a url String
|
|
|
|
|
// this can be used as a simple tool to test the text parser
|
|
|
|
|
final String urlString = post.get("url", "");
|
|
|
|
|
if (urlString.length() > 0) try {
|
|
|
|
|
// this call forces the peer to download web pages
|
|
|
|
@ -133,7 +130,6 @@ public class ViewFile {
|
|
|
|
|
urlHash = ASCII.String(url.hash());
|
|
|
|
|
pre = post.getBoolean("pre");
|
|
|
|
|
} catch (final MalformedURLException e) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
URIMetadata urlEntry = null;
|
|
|
|
|
// get the urlEntry that belongs to the url hash
|
|
|
|
|