buffering response to support non-string response

Hi,
Just added support non-string response. Current code seems to handle only string response while proxying
Thanks,
Prasun