Skip to content
Snippets Groups Projects
Unverified Commit 3eaa61a4 authored by Mitsutaka Sato's avatar Mitsutaka Sato Committed by GitHub
Browse files

Set timeout for valid_url (#2552)

parent 09ab074a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment