forked from External/greenlight
master #1
|
@ -110,6 +110,7 @@ module ApplicationHelper
|
|||
# Make a GET request and validate content type
|
||||
http = Net::HTTP.new(url.host, url.port)
|
||||
http.use_ssl = (url.scheme == "https")
|
||||
http.read_timeout = 10
|
||||
|
||||
http.start do |web|
|
||||
response = web.head(url.request_uri)
|
||||
|
|
Loading…
Reference in New Issue