1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-24 18:41:06 +03:00

Add parse overload which fails on invalid inputs

This commit is contained in:
Jake Wharton
2018-07-05 22:09:40 -04:00
parent d45f517f1f
commit 36f4fd04f7
24 changed files with 191 additions and 124 deletions

View File

@@ -53,7 +53,7 @@ import static org.junit.Assert.fail;
import static org.junit.Assume.assumeThat;
public final class HttpLoggingInterceptorTest {
private static final MediaType PLAIN = MediaType.parse("text/plain; charset=utf-8");
private static final MediaType PLAIN = MediaType.get("text/plain; charset=utf-8");
@Rule public final MockWebServer server = new MockWebServer();