error with POST request - flow

5 views
Skip to first unread message

Dae San Hwang

unread,
Aug 14, 2008, 4:11:49 AM8/14/08
to ebb...@googlegroups.com
Ry,

I am having some problems with post requests.

First issue was that env['CONTENT_TYPE'] returning nil. I fixed this
at git://github.com/daesan/flow.git

Now, I am getting the following error. Could you take a look at it? (I
am yet to familiarize myself with fiber..)

no implicit conversion from nil to integer
"/Users/daesan/flow/lib/flow.rb:256:in `read'


daesan

ry dahl

unread,
Aug 14, 2008, 8:04:54 AM8/14/08
to ebb...@googlegroups.com
Hi daesan,

I put your content type fix in - thanks


> no implicit conversion from nil to integer
> "/Users/daesan/flow/lib/flow.rb:256:in `read'

I'm not sure what this refers to - I'm having an okay time posting
data (although I haven't tried large posts yet). Can you show me how
to reproduce?

ry

Dae San Hwang

unread,
Aug 21, 2008, 10:05:11 AM8/21/08
to ebb...@googlegroups.com
Ry,

It turns out that Rev::Buffer#input doesn't handle nil argument though
the document says it should. This prevents flow from processing POST
requests. I put a temporary fix at git://github.com/daesan/flow.git

>> Rev::Buffer.new.read(nil)
TypeError: no implicit conversion from nil to integer

daesan

ry dahl

unread,
Aug 21, 2008, 10:16:45 AM8/21/08
to ebb...@googlegroups.com
okay thanks!
Reply all
Reply to author
Forward
0 new messages