79775639

Date: 2025-09-26 08:36:20
Score: 1
Natty:
Report link

Since Spring Web version 6.2 there is a UriComponentsBuilder method that supports lax parsing like browsers do. You can try something like:

URI uri = UriComponentsBuilder.fromUriString(malformedUrl, ParserType.WHAT_WG).build().toUri();

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jose L. Hernandez