Commit ba61661
committed
fix(server): relax authority validation for Unix domain socket compatibility
Go gRPC clients connecting over Unix domain sockets send the
URL-encoded socket path as the :authority pseudo-header (e.g.
%2Fvar%2Frun%2Fisol8%2Fcri.sock). This is rejected by
http::uri::Authority as invalid, causing RST_STREAM PROTOCOL_ERROR.
Instead of rejecting the request, log a warning and skip setting
the authority. This matches the intent of hyperium#487 which
has been open since 2020.1 parent 2aeb81f commit ba61661
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1660 | 1660 | | |
1661 | 1661 | | |
1662 | 1662 | | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1670 | 1675 | | |
1671 | 1676 | | |
1672 | 1677 | | |
| |||
0 commit comments