I am (attempting to) use Ktor for client multipart form uploading for an image. I think I every set yp okay, but I am getting extra lines between the header and body like this, which the Apache server we are using may be choking on (still gathering logs). Does this sound believable? If so, any way to fix it?
To answer my own question: I got a Python script working for the image upload I am working on. It works with only one space between headers and body, but if I add one more space, the server I am calling returns 400.
So, the extra spaces that the Ktor MultiPartFormDataContent.writeTo(channel) are inserting like so: