Skip to content

Commit

Permalink
Add --max-time 10 to curl call (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored Aug 15, 2018
1 parent 34d4bb1 commit af58ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocChecks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function linkcheck(link::Markdown.Link, doc::Documents.Document)
if !haskey(doc.internal.locallinks, link)
local result
try
result = read(`curl -sI $(link.url)`, String)
result = read(`curl -sI $(link.url) --max-time 10`, String)
catch err
push!(doc.internal.errors, :linkcheck)
Utilities.warn("`curl -sI $(link.url)` failed:\n\n$(err)")
Expand Down

0 comments on commit af58ad7

Please sign in to comment.