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

Commit 0b2283e1 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

add fix in gzipedPropfind

parent 96e4eb0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ public class GzipedPropfind extends PropFindMethod {
    public Document getResponseBodyAsDocument() throws IOException {
    public Document getResponseBodyAsDocument() throws IOException {
        Header contentEncodingHeader= getResponseHeader("Content-Encoding");
        Header contentEncodingHeader= getResponseHeader("Content-Encoding");


        if(contentEncodingHeader != null && contentEncodingHeader.getValue().indexOf("gzip") != -1 ) {
        if(contentEncodingHeader != null && contentEncodingHeader.getValue().indexOf("gzip") == -1 ) {
            return super.getResponseBodyAsDocument();
            return super.getResponseBodyAsDocument();
        }
        }
        //@TOdo: look for potential optimisation like pipe gzipInputStream directly in InputStream in
        //@TOdo: look for potential optimisation like pipe gzipInputStream directly in InputStream in