Fixed #25 Out of Memory exception.
The problem was caused by the response being buffered. Turning off the buffering fixed this issue.