diff --git a/core/java/src/net/i2p/util/EepGet.java b/core/java/src/net/i2p/util/EepGet.java index 30f969381af2dc50eaa54764e88183b8899d0cd3..2805ea5f09a78c6faeef5ed072563f300bb2166b 100644 --- a/core/java/src/net/i2p/util/EepGet.java +++ b/core/java/src/net/i2p/util/EepGet.java @@ -30,8 +30,6 @@ import net.i2p.util.InternalSocket; * [-o outputFile] * [-m markSize lineLen] * url - * - * Bug: a malformed url http://example.i2p (no trailing '/') fails cryptically */ public class EepGet { protected final I2PAppContext _context; @@ -1207,7 +1205,7 @@ public class EepGet { public void addAuthorization(String userName, String password) { if (_shouldProxy) addHeader("Proxy-Authorization", - "Basic " + Base64.encode((userName + ':' + password).getBytes(), true)); // true = use standard alphabet + "Basic " + Base64.encode(DataHelper.getUTF8(userName + ':' + password), true)); // true = use standard alphabet } /**