Closed tian-pengfei closed 1 month ago
@Test public void testGetWithLeadingSpace() { String json = " {\n" + " \"name\": \"hutool\"\n" + " }"; ContentType contentType = ContentType.get(json); Assert.assertEquals(ContentType.JSON, contentType); }
确实无伤大雅,合并吧。