From c8c8fb11d8c324b2f5057b4ce96e1df2f59f4abf Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Sun, 30 Aug 2026 04:11:58 +0800 Subject: [PATCH] tinyhttps 0.2.10 `send_stream` kept the status line of a failed streaming request and dropped the reason. It now keeps the body, and three framing defects found while reviewing that change are fixed with it: a declared `Content-Length` is honoured (the error body used to arrive one full read timeout late on the library's own defaults), a chunk size that does not parse is no longer read as a terminal chunk, and `Content-Length` is rejected rather than salvaged. Reported and first fixed by Cloud_Yun in mcpplibs/tinyhttps#11 and #12; landed with the review in #14. Measured before this commit: the CN mirror asset returns 200, opens as an archive, and its sha256 is identical to the GitHub tag tarball. --- pkgs/t/tinyhttps.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pkgs/t/tinyhttps.lua b/pkgs/t/tinyhttps.lua index d5b7399b..37c34455 100644 --- a/pkgs/t/tinyhttps.lua +++ b/pkgs/t/tinyhttps.lua @@ -75,6 +75,13 @@ package = { }, sha256 = "b17e0b15d2c205a2918708bcd3ac992384f1a38d03232c28f17190a1db081e54", }, + ["0.2.10"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/tinyhttps/archive/refs/tags/0.2.10.tar.gz", + CN = "https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.2.10/tinyhttps-0.2.10.tar.gz", + }, + sha256 = "7ab1555ff465ae179579cc2d9328db11c847770f9a22148d563cd041dd8e4481", + }, }, macosx = { ["0.2.1"] = { @@ -140,6 +147,13 @@ package = { }, sha256 = "b17e0b15d2c205a2918708bcd3ac992384f1a38d03232c28f17190a1db081e54", }, + ["0.2.10"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/tinyhttps/archive/refs/tags/0.2.10.tar.gz", + CN = "https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.2.10/tinyhttps-0.2.10.tar.gz", + }, + sha256 = "7ab1555ff465ae179579cc2d9328db11c847770f9a22148d563cd041dd8e4481", + }, }, windows = { ["0.2.1"] = { @@ -205,6 +219,13 @@ package = { }, sha256 = "b17e0b15d2c205a2918708bcd3ac992384f1a38d03232c28f17190a1db081e54", }, + ["0.2.10"] = { + url = { + GLOBAL = "https://github.com/mcpplibs/tinyhttps/archive/refs/tags/0.2.10.tar.gz", + CN = "https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.2.10/tinyhttps-0.2.10.tar.gz", + }, + sha256 = "7ab1555ff465ae179579cc2d9328db11c847770f9a22148d563cd041dd8e4481", + }, }, }, }