Project

General

Profile

Misc #6299 » 0002-Streamline-implementation-with-1.9.3.patch

isaacsanders (Isaac Sanders), 04/16/2012 12:22 AM

View differences:

lib/net/http.rb
res
end
# Sends a PATCH request to the +path+ and gets a response,
# as an HTTPResponse object.
def patch(path, body, initheader = nil)
request(Patch.new(path, initheader), body)
def patch(path, data, initheader = nil, dest = nil, &block) #:nodoc:
res = nil
request(Patch.new(path, initheader), data) {|r|
r.read_body dest, &block
res = r
}
unless @newimpl
res.value
return res, res.body
end
res
end
# Sends a PROPPATCH request to the +path+ and gets a response,
(2-2/2)