From ae11eec6d7d621d6f240013aeb46540187bf7306 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 19 Oct 2013 17:00:24 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20parse=20the=20(non-existing!)=20?= =?utf8?q?request=20URI=20from=20the=20Sone=20XML.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/core/SoneParser.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index d4e8078..7ecae92 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -147,17 +147,6 @@ public class SoneParser { sone.setClient(new Client(clientName, clientVersion)); } - String soneRequestUri = soneXml.getValue("request-uri", null); - if (soneRequestUri != null) { - try { - sone.setRequestUri(new FreenetURI(soneRequestUri)); - } catch (MalformedURLException mue1) { - /* TODO - mark Sone as bad. */ - logger.log(Level.WARNING, String.format("Downloaded Sone %s has invalid request URI: %s", sone, soneRequestUri), mue1); - return null; - } - } - if (originalSone.getInsertUri() != null) { sone.setInsertUri(originalSone.getInsertUri()); } -- 2.7.4