diff options
-rw-r--r-- | luni/src/test/java/libcore/java/net/URLConnectionTest.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/luni/src/test/java/libcore/java/net/URLConnectionTest.java b/luni/src/test/java/libcore/java/net/URLConnectionTest.java index 3f750e44c6..9ba2e071fd 100644 --- a/luni/src/test/java/libcore/java/net/URLConnectionTest.java +++ b/luni/src/test/java/libcore/java/net/URLConnectionTest.java @@ -2293,8 +2293,13 @@ public final class URLConnectionTest extends TestCase { testUrlToRequestMapping("$", "$", "$"); testUrlToUriMapping("&", "&", "&", "&", "&"); testUrlToRequestMapping("&", "&", "&"); - testUrlToUriMapping("'", "'", "'", "%27", "'"); - testUrlToRequestMapping("'", "'", "%27"); + + // http://b/30405333 - upstream OkHttp encodes single quote (') as %27 in query parameters + // but this breaks iTunes remote apps: iTunes currently does not accept %27 so we have a + // local patch to retain the historic Android behavior of not encoding single quote. + testUrlToUriMapping("'", "'", "'", "'", "'"); + testUrlToRequestMapping("'", "'", "'"); + testUrlToUriMapping("(", "(", "(", "(", "("); testUrlToRequestMapping("(", "(", "("); testUrlToUriMapping(")", ")", ")", ")", ")"); |