Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

ObjectMapper uses writeValueAsString() #112

Open
ODie0x03B7 opened this issue Jun 4, 2020 · 0 comments
Open

ObjectMapper uses writeValueAsString() #112

ODie0x03B7 opened this issue Jun 4, 2020 · 0 comments

Comments

@ODie0x03B7
Copy link

In Fetch.java/send(...) ObjectMapper is invoked with writeValueAsString() and the string is immediately converted to bytes:

String requestParams = mapper.writeValueAsString(request);
byte[] postData = requestParams.getBytes();

This could be replaced by

byte[] postData = mapper.writeValueAsBytes(request);

if I understand correctly?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant