Skip to content

Commit 8ac08e6

Browse files
authored
tinyhttps 0.2.10 (#287)
`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.
1 parent 21d8dd0 commit 8ac08e6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

pkgs/t/tinyhttps.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ package = {
7575
},
7676
sha256 = "b17e0b15d2c205a2918708bcd3ac992384f1a38d03232c28f17190a1db081e54",
7777
},
78+
["0.2.10"] = {
79+
url = {
80+
GLOBAL = "https://github.com/mcpplibs/tinyhttps/archive/refs/tags/0.2.10.tar.gz",
81+
CN = "https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.2.10/tinyhttps-0.2.10.tar.gz",
82+
},
83+
sha256 = "7ab1555ff465ae179579cc2d9328db11c847770f9a22148d563cd041dd8e4481",
84+
},
7885
},
7986
macosx = {
8087
["0.2.1"] = {
@@ -140,6 +147,13 @@ package = {
140147
},
141148
sha256 = "b17e0b15d2c205a2918708bcd3ac992384f1a38d03232c28f17190a1db081e54",
142149
},
150+
["0.2.10"] = {
151+
url = {
152+
GLOBAL = "https://github.com/mcpplibs/tinyhttps/archive/refs/tags/0.2.10.tar.gz",
153+
CN = "https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.2.10/tinyhttps-0.2.10.tar.gz",
154+
},
155+
sha256 = "7ab1555ff465ae179579cc2d9328db11c847770f9a22148d563cd041dd8e4481",
156+
},
143157
},
144158
windows = {
145159
["0.2.1"] = {
@@ -205,6 +219,13 @@ package = {
205219
},
206220
sha256 = "b17e0b15d2c205a2918708bcd3ac992384f1a38d03232c28f17190a1db081e54",
207221
},
222+
["0.2.10"] = {
223+
url = {
224+
GLOBAL = "https://github.com/mcpplibs/tinyhttps/archive/refs/tags/0.2.10.tar.gz",
225+
CN = "https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.2.10/tinyhttps-0.2.10.tar.gz",
226+
},
227+
sha256 = "7ab1555ff465ae179579cc2d9328db11c847770f9a22148d563cd041dd8e4481",
228+
},
208229
},
209230
},
210231
}

0 commit comments

Comments
 (0)