|
@@ -65,7 +65,7 @@ class Base64 {
|
|
return str;
|
|
return str;
|
|
}
|
|
}
|
|
|
|
|
|
- public static function urlEncode( str : String, complement = false ) : haxe.io.Bytes {
|
|
|
|
|
|
+ public static function urlDecode( str : String, complement = false ) : haxe.io.Bytes {
|
|
if( complement )
|
|
if( complement )
|
|
while( str.charCodeAt(str.length-1) == "=".code )
|
|
while( str.charCodeAt(str.length-1) == "=".code )
|
|
str = str.substr(0,-1);
|
|
str = str.substr(0,-1);
|