Is this a bug in Rack?

I'm trying to post multipart content (a file and some strings) to a
Sinatra server on localhost using a java client. It seems the server
doesn't like the POST message. The stack trace is: