Commit 226305d
fix(http1): improve debug messages when sending trailers
When the "trailer" header was not found in the response, the debug
message would say "attempted to encode trailers for non-chunked
response". This was quite misleading as the response was chunked. We
now include a better debug message that hints to the user that the
"trailer" header was not specified.
When a chunked response contained a trailer header that did not match
the header names specified in the "trailer" response header, there was
no debug message to the user. We now include debug messages that tell
the user if the header name is not allowed and if the header name was
not specified in the "trailer" response header.1 parent e2d451e commit 226305d
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
185 | 190 | | |
186 | 191 | | |
187 | 192 | | |
| |||
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
203 | 212 | | |
204 | 213 | | |
205 | 214 | | |
| |||
0 commit comments