瀏覽代碼

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) {
 					var cstr = chunk_re.matched(1);
 					chunk_size = Std.parseInt("0x"+cstr);
-					if(cstr == "0") {
+					if(chunk_size == 0) {
 						chunk_size = null;
 						chunk_buf = null;
 						return false;