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.