Skip to content

Commit 322c45b

Browse files
committed
fixes handling of non https connections
1 parent a5786c8 commit 322c45b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine_cli/query.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def execute
2929
url = URI.parse(url_for(99, page))
3030

3131
http = Net::HTTP.new(url.host, url.port)
32-
http.use_ssl = true
32+
http.use_ssl = url.scheme == "https"
3333

3434
request = Net::HTTP::Get.new("#{url.path}?#{url.query}")
3535
response = http.start { |http| http.request(request) }

0 commit comments

Comments
 (0)