Explorar el Código

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

romamik hace 8 años
padre
commit
7417cc76fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;