--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3c497b87998592c706c03d679bb95667%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
He gets that snippet from another server, the opening does not want to create a body without headers, he wants to extract the actual body out of a full HTTP-response he got from external services.
So easiest way would be to drop everything before the first (and including it) newline, the remainder is the body, as described in the HTTP-RFC...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv%3D3xQrRQ%2B3pvSHxkLiY9XKZEsZD4GzJfdZ9cdkvGcV_A%40mail.gmail.com.