|
|
@ -29,7 +29,7 @@ class GitService
|
|
|
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
|
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
|
|
https.use_ssl = root_url.start_with?('https')
|
|
|
|
https.use_ssl = root_url.start_with?('https')
|
|
|
|
req = Net::HTTP::Post.new(uri.path, initheader = {'Content-Type' => 'text/plain;charset=utf-8'})
|
|
|
|
req = Net::HTTP::Post.new(uri.path, initheader = {'Content-Type' => 'text/plain;charset=utf-8'})
|
|
|
|
req.body = params.to_json
|
|
|
|
req.body = JSON.parse(params)
|
|
|
|
res = https.request(req)
|
|
|
|
res = https.request(req)
|
|
|
|
body = res.body
|
|
|
|
body = res.body
|
|
|
|
logger.info("--uri_exec: .....res is #{body}")
|
|
|
|
logger.info("--uri_exec: .....res is #{body}")
|
|
|
|