I've faced a problem when using curl in PHP - when running the replication (with https://github.com/relaxedws/drupal-replication), if the first line is the content size, not the boundary, the replication fails. That because the couchdb-client always takes the main boundary from the first line in MultipartParserAndSender::parseAndSend().
Hello @beberlei ! I would be very grateful if you could review/merge this PR. Because of this issue our tests are failing for a long time (for a drupal module): https://www.drupal.org/pift-ci-job/388361. Thank you!
This makes possible to process multipart streams with the content size before boundary. Eg.:
I've faced a problem when using
curl
in PHP - when running the replication (with https://github.com/relaxedws/drupal-replication), if the first line is the content size, not the boundary, the replication fails. That because thecouchdb-client
always takes the main boundary from the first line inMultipartParserAndSender::parseAndSend()
.