Procházet zdrojové kódy

we don't know content length when encoding to base64 from raw

tags/2.0.1
Jonathan Cobb před 4 roky
rodič
revize
0262f77401
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      wizard-server/src/main/java/org/cobbzilla/wizard/stream/DataUrlStreamingOutput.java

+ 1
- 1
wizard-server/src/main/java/org/cobbzilla/wizard/stream/DataUrlStreamingOutput.java Zobrazit soubor

@@ -68,7 +68,7 @@ public class DataUrlStreamingOutput implements StreamingOutput {
// data url was base64, and base64 was not requested -- decode and send
data = new Base64InputStream(new ByteArrayInputStream(dataBytes), false);
contentType = mediaSpecifier.substring(0, b64pos);
contentLength = (long) dataBytes.length;
contentLength = null;
}
}
}


Načítá se…
Zrušit
Uložit