ソースを参照

sys.Http: fix chunked encoding handling (#6763)

romamik 7 年 前
コミット
7417cc76fe
1 ファイル変更1 行追加1 行削除
  1. 1 1
      std/sys/Http.hx

+ 1 - 1
std/sys/Http.hx

@@ -398,7 +398,7 @@ class Http extends haxe.http.HttpBase {
 				if(p.len <= len) {
 				if(p.len <= len) {
 					var cstr = chunk_re.matched(1);
 					var cstr = chunk_re.matched(1);
 					chunk_size = Std.parseInt("0x"+cstr);
 					chunk_size = Std.parseInt("0x"+cstr);
-					if(cstr == "0") {
+					if(chunk_size == 0) {
 						chunk_size = null;
 						chunk_size = null;
 						chunk_buf = null;
 						chunk_buf = null;
 						return false;
 						return false;