|
@@ -330,7 +330,7 @@ class Connection {
|
|
}else if( REG_FETCH_PART.match( s ) ){
|
|
}else if( REG_FETCH_PART.match( s ) ){
|
|
var len = Std.parseInt(REG_FETCH_PART.matched(2));
|
|
var len = Std.parseInt(REG_FETCH_PART.matched(2));
|
|
|
|
|
|
- o.body = cnx.input.readBytes( len );
|
|
|
|
|
|
+ o.body = cnx.input.read( len );
|
|
o.bodyType = REG_FETCH_PART.matched(1);
|
|
o.bodyType = REG_FETCH_PART.matched(1);
|
|
|
|
|
|
cnx.input.readLine();
|
|
cnx.input.readLine();
|
|
@@ -454,7 +454,7 @@ class Connection {
|
|
var reg = ~/(?<!\] )\{([0-9]+)\}$/;
|
|
var reg = ~/(?<!\] )\{([0-9]+)\}$/;
|
|
while( reg.match( s ) ){
|
|
while( reg.match( s ) ){
|
|
var len = Std.parseInt( reg.matched(1) );
|
|
var len = Std.parseInt( reg.matched(1) );
|
|
- var t = cnx.input.readBytes( len );
|
|
|
|
|
|
+ var t = cnx.input.read( len );
|
|
var e = cnx.input.readLine();
|
|
var e = cnx.input.readLine();
|
|
s = s.substr(0,-reg.matchedPos().len)+"\""+t.split("\"").join("\\\"")+"\"" +e;
|
|
s = s.substr(0,-reg.matchedPos().len)+"\""+t.split("\"").join("\\\"")+"\"" +e;
|
|
}
|
|
}
|