Please sign in to comment.
url: do not truncate long hostnames
Currently, around line 417 lib/url.js is truncating hostname and put the rest of hostname to the path if hostname length after `.` is equal or more than 63. This behavior is different from browser behavior. I changed the code so that it doesn’t truncate. I also added the test example which has more than 63 length in after `.` in hostname in test url. PR-URL: #9292 Reviewed-By: Colin Ihrig <email@example.com> Reviewed-By: Rich Trott <firstname.lastname@example.org> Reviewed-By: James M Snell <email@example.com> Reviewed-By: Brian White <firstname.lastname@example.org>
- Loading branch information...
Showing with 25 additions and 25 deletions.