JornWildt / Ramone

A C# client framework for consuming HTTP/REST services
Other
61 stars 11 forks source link

Response.Body is re-reading input #2

Closed JornWildt closed 11 years ago

JornWildt commented 11 years ago

The non-generic Body property of Response does not keep a cache of the response - instead it tries to deserialize the input stream everytime Body is access. It should take a copy just like the generic version of Body does.

Problem code:

public object Body
{
  get
  {
    return Decode<object>();
  }
}