|
1177 | 1177 | "host": "test.invalid",
|
1178 | 1178 | "hostname": "test.invalid"
|
1179 | 1179 | }
|
| 1180 | + }, |
| 1181 | + { |
| 1182 | + "href": "https://test.invalid/", |
| 1183 | + "new_value": "test/@aaa", |
| 1184 | + "expected": { |
| 1185 | + "href": "https://test/", |
| 1186 | + "host": "test", |
| 1187 | + "hostname": "test" |
| 1188 | + } |
| 1189 | + }, |
| 1190 | + { |
| 1191 | + "href": "https://test.invalid/", |
| 1192 | + "new_value": "test/:aaa", |
| 1193 | + "expected": { |
| 1194 | + "href": "https://test/", |
| 1195 | + "host": "test", |
| 1196 | + "hostname": "test" |
| 1197 | + } |
1180 | 1198 | }
|
1181 | 1199 | ],
|
1182 | 1200 | "hostname": [
|
|
1624 | 1642 | "host": "test.invalid",
|
1625 | 1643 | "hostname": "test.invalid"
|
1626 | 1644 | }
|
| 1645 | + }, |
| 1646 | + { |
| 1647 | + "href": "https://test.invalid/", |
| 1648 | + "new_value": "test/@aaa", |
| 1649 | + "expected": { |
| 1650 | + "href": "https://test/", |
| 1651 | + "host": "test", |
| 1652 | + "hostname": "test" |
| 1653 | + } |
| 1654 | + }, |
| 1655 | + { |
| 1656 | + "href": "https://test.invalid/", |
| 1657 | + "new_value": "test/:aaa", |
| 1658 | + "expected": { |
| 1659 | + "href": "https://test/", |
| 1660 | + "host": "test", |
| 1661 | + "hostname": "test" |
| 1662 | + } |
1627 | 1663 | }
|
1628 | 1664 | ],
|
1629 | 1665 | "port": [
|
|
2241 | 2277 | }
|
2242 | 2278 | },
|
2243 | 2279 | {
|
2244 |
| - "comment": "Drop trailing spaces from trailing opaque paths", |
| 2280 | + "comment": "Trailing spaces and opaque paths", |
2245 | 2281 | "href": "data:space ?query",
|
2246 | 2282 | "new_value": "",
|
2247 | 2283 | "expected": {
|
2248 |
| - "href": "data:space", |
2249 |
| - "pathname": "space", |
| 2284 | + "href": "data:space%20", |
| 2285 | + "pathname": "space%20", |
2250 | 2286 | "search": ""
|
2251 | 2287 | }
|
2252 | 2288 | },
|
2253 | 2289 | {
|
2254 | 2290 | "href": "sc:space ?query",
|
2255 | 2291 | "new_value": "",
|
2256 | 2292 | "expected": {
|
2257 |
| - "href": "sc:space", |
2258 |
| - "pathname": "space", |
| 2293 | + "href": "sc:space%20", |
| 2294 | + "pathname": "space%20", |
2259 | 2295 | "search": ""
|
2260 | 2296 | }
|
2261 | 2297 | },
|
2262 | 2298 | {
|
2263 |
| - "comment": "Do not drop trailing spaces from non-trailing opaque paths", |
| 2299 | + "comment": "Trailing spaces and opaque paths", |
2264 | 2300 | "href": "data:space ?query#fragment",
|
2265 | 2301 | "new_value": "",
|
2266 | 2302 | "expected": {
|
2267 |
| - "href": "data:space #fragment", |
| 2303 | + "href": "data:space %20#fragment", |
2268 | 2304 | "search": ""
|
2269 | 2305 | }
|
2270 | 2306 | },
|
2271 | 2307 | {
|
2272 | 2308 | "href": "sc:space ?query#fragment",
|
2273 | 2309 | "new_value": "",
|
2274 | 2310 | "expected": {
|
2275 |
| - "href": "sc:space #fragment", |
| 2311 | + "href": "sc:space %20#fragment", |
2276 | 2312 | "search": ""
|
2277 | 2313 | }
|
2278 | 2314 | },
|
|
2429 | 2465 | }
|
2430 | 2466 | },
|
2431 | 2467 | {
|
2432 |
| - "comment": "Drop trailing spaces from trailing opaque paths", |
| 2468 | + "comment": "Trailing spaces and opaque paths", |
2433 | 2469 | "href": "data:space #fragment",
|
2434 | 2470 | "new_value": "",
|
2435 | 2471 | "expected": {
|
2436 |
| - "href": "data:space", |
2437 |
| - "pathname": "space", |
| 2472 | + "href": "data:space %20", |
| 2473 | + "pathname": "space %20", |
2438 | 2474 | "hash": ""
|
2439 | 2475 | }
|
2440 | 2476 | },
|
2441 | 2477 | {
|
2442 | 2478 | "href": "sc:space #fragment",
|
2443 | 2479 | "new_value": "",
|
2444 | 2480 | "expected": {
|
2445 |
| - "href": "sc:space", |
2446 |
| - "pathname": "space", |
| 2481 | + "href": "sc:space %20", |
| 2482 | + "pathname": "space %20", |
2447 | 2483 | "hash": ""
|
2448 | 2484 | }
|
2449 | 2485 | },
|
2450 | 2486 | {
|
2451 |
| - "comment": "Do not drop trailing spaces from non-trailing opaque paths", |
| 2487 | + "comment": "Trailing spaces and opaque paths", |
2452 | 2488 | "href": "data:space ?query#fragment",
|
2453 | 2489 | "new_value": "",
|
2454 | 2490 | "expected": {
|
2455 |
| - "href": "data:space ?query", |
| 2491 | + "href": "data:space %20?query", |
2456 | 2492 | "hash": ""
|
2457 | 2493 | }
|
2458 | 2494 | },
|
2459 | 2495 | {
|
2460 | 2496 | "href": "sc:space ?query#fragment",
|
2461 | 2497 | "new_value": "",
|
2462 | 2498 | "expected": {
|
2463 |
| - "href": "sc:space ?query", |
| 2499 | + "href": "sc:space %20?query", |
2464 | 2500 | "hash": ""
|
2465 | 2501 | }
|
2466 | 2502 | },
|
|
0 commit comments