Create proper Sone URIs.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Nov 2010 20:38:31 +0000 (21:38 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Nov 2010 20:38:31 +0000 (21:38 +0100)
src/main/java/net/pterodactylus/sone/data/Sone.java

index 21ffd6f..8d6a3a1 100644 (file)
@@ -155,7 +155,7 @@ public class Sone {
         */
        public Sone setRequestUri(FreenetURI requestUri) {
                if (this.requestUri == null) {
-                       this.requestUri = requestUri;
+                       this.requestUri = requestUri.setDocName("Sone").setMetaString(new String[0]);
                        return this;
                }
                if (!this.requestUri.equalsKeypair(requestUri)) {
@@ -184,7 +184,7 @@ public class Sone {
         */
        public Sone setInsertUri(FreenetURI insertUri) {
                if (this.insertUri == null) {
-                       this.insertUri = insertUri;
+                       this.insertUri = insertUri.setDocName("Sone").setMetaString(new String[0]);
                        return this;
                }
                if (!this.insertUri.equalsKeypair(insertUri)) {