Repository navigation
Commit 1f032f8
committed
fix(httpv2)!: default RST_STREAM and GOAWAY to NO_ERROR (#2311)
Problem: HTTP._make_http_rst_stream and HTTP._make_http_goaway defaulted
error to HTTP_1_1_REQUIRED (0xd), so a frame built without an error code
asked the peer to use HTTP/1.1 instead.
Fix: both default to NO_ERROR (0x0), per RFC 9113 section 7; docstrings
carry a versionchanged note, and the 1.5.0 changelog records the breaking
change (CHANGELOG.md regenerated).
Test: test_httpv2_error_default_2311_unit.py builds both frames with
frame={} and pins the emitted error-code octets as zero, and an explicit
error as still honoured.1 parent bfe184b commit 1f032f8
4 files changed
Lines changed: 93 additions & 4 deletions
File tree
- docs/source/changelog
- pcapkit/protocols/application
- tests/protocols/application
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
1492 | 1498 | | |
1493 | 1499 | | |
1494 | 1500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1251 | 1251 | | |
1252 | 1252 | | |
1253 | 1253 | | |
1254 | | - | |
| 1254 | + | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
| |||
1260 | 1260 | | |
1261 | 1261 | | |
1262 | 1262 | | |
1263 | | - | |
| 1263 | + | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
| |||
1269 | 1269 | | |
1270 | 1270 | | |
1271 | 1271 | | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1272 | 1279 | | |
1273 | 1280 | | |
1274 | 1281 | | |
| |||
1430 | 1437 | | |
1431 | 1438 | | |
1432 | 1439 | | |
1433 | | - | |
| 1440 | + | |
1434 | 1441 | | |
1435 | 1442 | | |
1436 | 1443 | | |
| |||
1442 | 1449 | | |
1443 | 1450 | | |
1444 | 1451 | | |
1445 | | - | |
| 1452 | + | |
1446 | 1453 | | |
1447 | 1454 | | |
1448 | 1455 | | |
| |||
1452 | 1459 | | |
1453 | 1460 | | |
1454 | 1461 | | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
1455 | 1469 | | |
1456 | 1470 | | |
1457 | 1471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments