Commit 8ac08e6
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
140 | 147 | | |
141 | 148 | | |
142 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
143 | 157 | | |
144 | 158 | | |
145 | 159 | | |
| |||
205 | 219 | | |
206 | 220 | | |
207 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
208 | 229 | | |
209 | 230 | | |
210 | 231 | | |
0 commit comments