small change

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@946 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
borg-0300 19 years ago
parent ee7d847869
commit 7b510b558a

@ -112,9 +112,9 @@ public class crypt {
public static String simpleEncode(String content, String key, char method) { public static String simpleEncode(String content, String key, char method) {
if (key == null) { key = "NULL"; } if (key == null) { key = "NULL"; }
switch (method) { switch (method) {
case 'p' : return "p|" + content;
case 'b' : return "b|" + serverCodings.enhancedCoder.encodeBase64String(content); case 'b' : return "b|" + serverCodings.enhancedCoder.encodeBase64String(content);
case 'z' : return "z|" + serverCodings.enhancedCoder.encodeBase64(gzip.gzipString(content)); case 'z' : return "z|" + serverCodings.enhancedCoder.encodeBase64(gzip.gzipString(content));
case 'p' : return "p|" + content;
default : return null; default : return null;
} }
} }

Loading…
Cancel
Save