Commit 7de11e5
committed
Merge #463: [bitreq] Add default size limits for headers, status line, and body
dfa0ce9 [bitreq] Set a default max-response limit of 1 GiB (Matt Corallo)
704fe64 [bitreq] Set default max header/status line limits (Matt Corallo)
Pull request description:
I realize we also don't have default size limits for the total response headers or status line, which is quite a large footgun. Instead, here we adopt the default response header limit from chrome and set a status line limit of 1/4 of that. Also adds a 1GiB default body response just to have *some* limit even if its incredibly high and we still document that folks should really set it.
IMO we should cut this as 0.3.1.
ACKs for top commit:
jamillambert:
ACK dfa0ce9
tcharding:
ACK dfa0ce9
Tree-SHA512: b21c184baa0f1f7cc387a2cb07712062192af23a1f3ccba6b01f375be87e5776f7a7df0b0379b34b111e1fcaf3cf5f4de867121f83ef9e61bcf9ea0472e96f761 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
221 | 226 | | |
222 | 227 | | |
223 | 228 | | |
224 | | - | |
225 | | - | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
242 | | - | |
243 | | - | |
| 246 | + | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| |||
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
262 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| |||
0 commit comments