writer.write("\r\n");
writer.flush();
buffer.write(o.getResponseContent());
return new CachedData(0, buffer.toByteArray(), getMaxSize());
} catch (IOException ex) {
// There should be no IO exceptions since the operations are done with a memory stream
throw Throwables.propagate(ex);
}
}