Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

issue #427 - patching Ruby code with missing method #428

Merged
merged 1 commit into from
May 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions deploy/lib/RoxyHttp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ def set_path(path)
@path = path
end
end


# Give a little love to those folks stuck on ruby 1.8.7
class HTTPResponse
unless method_defined?(:body=)
def body=(value)
@body = value
end
end
end

module HTTPHeader
@@nonce_count = -1
CNONCE = Digest::MD5.hexdigest "%x" % (Time.now.to_i + rand(65535))
Expand Down Expand Up @@ -318,7 +327,7 @@ def start(request_params)
@http.ca_file = ca_file
end
end

# open connection
@http.start
end
Expand Down