Modify response header/body extraction method

Avoid bug happening when there is more than 1 header which cause the body to be the second header. Assuming that response body is ever the last part of the response.
Merge pull request #2 from thomas-klein/patch-1

Modify response header/body extraction method