Bakc into functional

This commit is contained in:
jeffcheasey88 2023-09-13 15:42:28 +02:00
parent 5e2d84895d
commit c3621da722

View file

@ -23,7 +23,7 @@ public abstract class FormResponse implements Response{
} }
public <T extends JSONAware> T json(HttpReader reader) throws Exception{ public <T extends JSONAware> T json(HttpReader reader) throws Exception{
return (T) (this.json = reader.readJsonEnter()); return (T) (this.json = reader.readJson());
} }
public boolean hasFields(String... fields){ public boolean hasFields(String... fields){