I'm a bit concerned about how this would perform if arbitrary binary data is seen on the RHS of the \r\n\r\n. Also, it's possible that \r\n\r\n is part of the actual payload