Open tomdz opened 12 years ago
FWIW, this works fine wih WEBbrick:
== Sinatra/1.2.6 has taken the stage on 4567 for production with backup from WEBrick
[2011-09-25 17:53:56] INFO WEBrick 1.3.1
[2011-09-25 17:53:56] INFO ruby 1.8.7 (2011-08-23) [java]
[2011-09-25 17:53:56] INFO WEBrick::HTTPServer#start: pid=71855 port=4567
127.0.0.1 - - [25/Sep/2011 17:54:07] "POST / HTTP/1.1" 200 11 0.0250
localhost - - [25/Sep/2011:17:54:07 PDT] "POST / HTTP/1.1" 200 11
- -> /
Interesting, thanks. I'll take a look at it as soon as I can. At first glance, it's definitely doing something strange -- the input stream the server is seeing seems to have the data duplicated many times, but this shouldn't be so. Not sure why. Might be a problem in Rack::Rewindable, but I'll definitely have a look at if it's a problem in rack-jetty itself. The code around this isn't very complex on this front, though.
Duplicated data in the POST body is exactly the problem https://github.com/stormbrew/rack-jetty/pull/6 fixes - I suspect these are the same issue.
I get this error when doing multipart posts against a sinatra app running with rack-jetty:
This is against this simple test app:
using this ruby script to perform the POST:
(This uses the multipart-post gem).