URLComponents queryItems losing percent encoding when mutated
问题 When using URLComponents 's queryItems I've found that if you have a query item whose value contains some percent encoded characters, in my case a / being encoded as %2F , then if you construct a URLComponents object from a String URL that contains such a query item, then mutate the list of query items for the URLComponents object, then if you try to get a URL by calling .url on the URLComponents object, then the query items lose their percent encoding. Here's the code I've been testing this