Мне любопытно, почему это проходит. Например, звездочка ниже не является процентом, закодированным как% 2A.Должен ли HttpUrl.Builder.addPathSegment% 2A кодировать звездочку?
HttpUrl url = new HttpUrl.Builder()
.scheme("http")
.host("host")
.addPathSegment("foo *")
.build();
assertEquals("http://host/foo%20*", url.toString());
assertEquals("/foo%20*", url.encodedPath());
сшивающий здесь: https://github.com/square/okhttp/issues/3488 –