Browse Source

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

tags/2.0.1
Jonathan Cobb 4 years ago
parent
commit
0262f77401
1 changed files with 1 additions and 1 deletions
  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 View File

@@ -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;
}
}
}


Loading…
Cancel
Save