From 8f09d7764724a57b751c4f38ebb2457fef55ed76 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sun, 13 Oct 2019 19:31:18 +0200 Subject: [PATCH] Add max time --- src/wordpress_used/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wordpress_used/core.clj b/src/wordpress_used/core.clj index 7eb06f7..632f4b5 100644 --- a/src/wordpress_used/core.clj +++ b/src/wordpress_used/core.clj @@ -8,7 +8,7 @@ (defn request "Make a request by means of curl" [url] - (shell/sh "curl" "-L" "-H" "User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0" "-H" "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" "-H" "Accept-Language: es,en-US;q=0.7,en;q=0.3" "-H" "DNT: 1" "-H" "Connection: keep-alive" "-H" "Upgrade-Insecure-Requests: 1" "-H" "Pragma: no-cache" "-H" "Cache-Control: no-cache" url)) + (shell/sh "curl" "-L" "--max-time" "5" "-H" "User-Agent: Firefox" url)) (defn read-csv-domains "Read CSV file with all domains"