Commit 5341b7d
committed
fix: deduplicate prefix detection using length comparison
Replace duplicated api/0/ detection condition in func() with a
length comparison against normalizeEndpoint's output. Since the
function only adds at most 1 char (trailing slash), a shorter
result indicates the prefix was stripped.1 parent 928a4ba commit 5341b7d
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1175 | 1179 | | |
1176 | 1180 | | |
1177 | 1181 | | |
| |||
0 commit comments