Skip to content

Commit

Permalink
fix(android): hide error for empty http decode charset (#13815)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga authored and hansemannn committed Apr 24, 2023
1 parent 9972afc commit b45b6d4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,11 @@ public void setReadyState(int readyState)
private String decodeResponseData(String charsetName)
{
Charset charset;

if (charsetName.isEmpty()) {
return null;
}

try {
charset = Charset.forName(charsetName);

Expand Down

0 comments on commit b45b6d4

Please sign in to comment.