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