Missing POST http bodies for HTTP Servers?

30 views
Skip to first unread message

Andrew Cholakian

unread,
Jun 17, 2012, 12:19:22 PM6/17/12
to alep...@googlegroups.com
I've been playing around with the latest Aleph, and I've noticed that the POST bodies (running it through noir) are always empty. I see that the content-length is always correct, but the ChannelBufferInputStream is always empty (.read) will always return null.

Any help would be much appreciated!

Zach Tellman

unread,
Jun 19, 2012, 12:56:51 AM6/19/12
to alep...@googlegroups.com
I'm unable to reproduce this. I've added an explicit test for this
case, and the body seems to be getting picked up just fine:

https://github.com/ztellman/aleph/commit/632534485d16337d8c8979d88876e8b4ff019041#L0R105

If you can provide a minimal reproduction of this issue, I'd be happy
to investigate further.

Zach

Andrew Cholakian

unread,
Jun 19, 2012, 1:08:25 AM6/19/12
to alep...@googlegroups.com
Ah, for some reason I thought slurp would handle aleph bodies (I
thought it worked on most streams). Didn't realize I needed
bytes->string. Thanks for the code push zach, that helps a lot.

BTW, I'm really liking the new aleph / lamina so far. I dig the new
API doc formatting as well for lamina! Much easier to navigate.
Reply all
Reply to author
Forward
0 new messages