diff --git a/src/main/java/com/couchbase/cblite/support/CBLMultipartReader.java b/src/main/java/com/couchbase/cblite/support/CBLMultipartReader.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/couchbase/cblite/support/CBLMultipartReader.java
+++ b/src/main/java/com/couchbase/cblite/support/CBLMultipartReader.java
@@ -145,7 +145,8 @@ public class CBLMultipartReader {
                     // The entire message might start with a boundary without a leading CRLF.
                     byte[] boundaryWithoutLeadingCRLF = getBoundaryWithoutLeadingCRLF();
                     if (bufLen >= boundaryWithoutLeadingCRLF.length) {
-                        if (Arrays.equals(buffer.toByteArray(), boundaryWithoutLeadingCRLF)) {
+                        // if (Arrays.equals(buffer.toByteArray(), boundaryWithoutLeadingCRLF)) {
+                        if (memcmp(buffer.toByteArray(), boundaryWithoutLeadingCRLF, boundaryWithoutLeadingCRLF.length)) {
                             deleteUpThrough(boundaryWithoutLeadingCRLF.length);
                             nextState = CBLMultipartReaderState.kInHeaders;
                         }
passes all tests!   issue #<I>.