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

Commit 96e4eb0b authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

add fix in gzipedPropfind

parent 44094659
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -55,12 +55,12 @@ public class GzipedPropfind extends PropFindMethod {
            return super.getResponseBodyAsDocument();
        }
        //@TOdo: look for potential optimisation like pipe gzipInputStream directly in InputStream in

        StringBuilder s = new StringBuilder();
        String line;
        try{
            GZIPInputStream gzipis = new GZIPInputStream(getResponseBodyAsStream());
            BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(gzipis));
            StringBuilder s = new StringBuilder();
            String line;

            while ((line = bufferedReader.readLine()) != null) {
                s.append(line);
            }
@@ -70,7 +70,6 @@ public class GzipedPropfind extends PropFindMethod {
            throw e;
        }


        InputStream in = new ByteArrayInputStream(s.toString().getBytes());
        if (in != null) {
            // read response and try to build a xml document