initialize should check that response is actually a RestClient::Response or Net::HTTPResponse before setting @response. headers should be explicit that the second case introduced in PR 14 is for Net:HTTPResponse. When I tried to do this quickly while reviewing PR 14 it broke a bunch of tests, so I don't have the time to deal with it at the moment.
initializeshould check thatresponseis actually aRestClient::ResponseorNet::HTTPResponsebefore setting@response.headersshould be explicit that the second case introduced in PR 14 is forNet:HTTPResponse. When I tried to do this quickly while reviewing PR 14 it broke a bunch of tests, so I don't have the time to deal with it at the moment.