Unified · Split
| @@ -26,7 +26,7 @@ module Docs · 25 unmodified lines | |||
| 26 | 26 | ||
| 27 | def normalize_href(href) | 27 | def normalize_href(href) |
| 28 | url = URL.parse(href) | 28 | url = URL.parse(href) |
| 29 | url.path = normalize_path(url.path) | 29 | url.send(:set_path, normalize_path(url.path)) |
| 30 | url | 30 | url |
| 31 | rescue URI::InvalidURIError | 31 | rescue URI::InvalidURIError |
| 32 | href | 32 | href |