Commit 7fc2d5f
committed
refactor(kernel): simplify _port folding to the bare-host case
server_hostname reaches the backend as a bare host on this path, so drop
the defensive scheme peel/re-add: just append the port when the host has
none, and let the kernel's normalise_host add the scheme. Removes the
now-moot scheme-preservation test.
Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@databricks.com>1 parent 1adcb29 commit 7fc2d5f
2 files changed
Lines changed: 7 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 646 | | |
654 | 647 | | |
655 | 648 | | |
0 commit comments