class Net::HTTPResponse

def begin_reading_body_hacked(sock, reqmethodallowbody)

def begin_reading_body_hacked(sock, reqmethodallowbody)
  @socket = sock
  @body_exist = reqmethodallowbody && self.class.body_permitted?
end

def end_reading_body_hacked

def end_reading_body_hacked
  self.body
  @socket = nil
end