typo
parent
2076d8fe35
commit
2d133a4d2d
|
@ -2,7 +2,7 @@ require 'net/http'
|
||||||
require 'uri'
|
require 'uri'
|
||||||
|
|
||||||
Client.register_command("kotki") { |args|
|
Client.register_command("kotki") { |args|
|
||||||
url = URL.parse(Config[:commands][:kotki][:url])
|
url = URI.parse(Config[:commands][:kotki][:url])
|
||||||
|
|
||||||
req = Net::HTTP::Get.new(url.path)
|
req = Net::HTTP::Get.new(url.path)
|
||||||
response = Net::HTTP.start(url.host, url.port) { |http| http.request(req) }
|
response = Net::HTTP.start(url.host, url.port) { |http| http.request(req) }
|
||||||
|
|
Loading…
Reference in New Issue