소스 검색

fix: httpplus,兼容非标的chunked响应

Wendal Chen 9 달 전
부모
커밋
75777812f3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      script/libs/httpplus.lua

+ 1 - 1
script/libs/httpplus.lua

@@ -357,7 +357,7 @@ local function resp_parse(opts)
                         -- opts.log(TAG, "chunked分片长度", ctmp, ctmp:toHex())
                         local clen = tonumber(ctmp, 16)
                         -- opts.log(TAG, "chunked分片长度2", clen)
-                        if clen == 0 then
+                        if clen == nil or clen == 0 then
                             -- 末尾了
                             opts.rx_buff:resize(coffset)
                             crun = false