move "defer rsp.Body.Close()" to after the check for an error from client.Do
move "defer rsp.Body.Close()" to after the check for an error from client.Do

vtrifonov/mmock,vtrifonov/mmock,vtrifonov/mmock