Skip to content

Commit

Permalink
Merge pull request #2 from ns0m/patch-newlines-base64
Browse files Browse the repository at this point in the history
[Android] Stop adding unnecessary new lines into base64 response string
  • Loading branch information
ath0mas authored Feb 14, 2024
2 parents 95e05e0 + 6c50aab commit cdf819a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public JSONObject toJSON() throws JSONException {
} else if (this.isFileOperation) {
json.put("file", this.fileEntry);
} else if (this.isRawResponse) {
json.put("data", Base64.encodeToString(this.rawData, Base64.DEFAULT));
json.put("data", Base64.encodeToString(this.rawData, Base64.NO_WRAP));
} else {
json.put("data", this.body);
}
Expand Down

0 comments on commit cdf819a

Please sign in to comment.