Re: Accessing POST Data More Than Once
"Katarina WONG" <[email protected]> Tue, 15 Nov 2005 12:44:28 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <op.sz95kegsap9h0v@mercury> |
Hi, > I think some people would expect read to work the same here as it does > for all other IO objects. I do not know what you expect but I should think that a rewind is in order if you want to read several times from a stream. Also, I reckon this will not work for all IO instances (seekable streams only). HTH, -- Katarina On Tue, 15 Nov 2005 03:44:21 +0100, Neil Stevens <[email protected]> wrote: > Steve Halasz wrote: >> This of course works. But I ran into the same problem and it took me a >> lot of hair-pulling before I realized why my script wasn't working. It >> would be best if this worked as expected and could be called more than >> once with the same result. > > I think some people would expect read to work the same here as it does > for all other IO objects.