Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaf0718c authored by Grace Kloba's avatar Grace Kloba
Browse files

loadListener.transferEncoding() is null if it is not specified in data: schema...

loadListener.transferEncoding() is null if it is not specified in data: schema when DataLoader is constructed. Reverse the checking order.
parent 3fdc39a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class DataLoader extends StreamLoader {
            String contentType = url.substring(0, commaIndex);
            data = url.substring(commaIndex + 1).getBytes();
            loadListener.parseContentTypeHeader(contentType);
            if (loadListener.transferEncoding().equals("base64")) {
            if ("base64".equals(loadListener.transferEncoding())) {
                data = Base64.decode(data);
            }
        } else {