Mararsh / MyBox

Easy tools of document, image, file, network, data, color, and media.
Apache License 2.0
133 stars 23 forks source link

new URI(address).toURL() pop syntax error when address has parameters #1761

Closed Mararsh closed 1 year ago

Mararsh commented 1 year ago

Example, when query map data: http://api.tianditu.gov.cn/geocoder?postStr={%27lon%27:116.43997,%27lat%27:39.8992,%27ver%27:1}&type=geocode&tk=0ddeb917def62b4691500526cc30a9b1

This address will cause new URI(address).toURL() fail to work, while new URL(address) still work. So use new URL(address) to query some data although it is Deprecated.