Set edition on parsed Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 18 Nov 2010 19:57:36 +0000 (20:57 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 18 Nov 2010 19:57:36 +0000 (20:57 +0100)
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java

index db1cdbc..0cedc15 100644 (file)
@@ -169,6 +169,7 @@ public class SoneDownloader extends AbstractService {
                        soneInputStream = soneBucket.getInputStream();
                        Sone parsedSone = parseSone(originalSone, soneInputStream);
                        if (parsedSone != null) {
+                               parsedSone.setLatestEdition(requestUri.getEdition());
                                if (requestUri.getKeyType().equals("USK")) {
                                        parsedSone.setRequestUri(requestUri.setMetaString(new String[0]));
                                } else {