From b5932d06fa7f6244e79f5e73c860e31aa185db1a Mon Sep 17 00:00:00 2001
From: Padmashree Jha <codewithpom@gmail.com>
Date: Mon, 25 Oct 2021 23:29:24 +0530
Subject: [PATCH] Add total User-Agent (#2551)

---
 build/validate_links.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/validate_links.py b/build/validate_links.py
index 348745a4..c0331d4d 100755
--- a/build/validate_links.py
+++ b/build/validate_links.py
@@ -56,9 +56,9 @@ def validate_links(links):
             if host[:3] == 'www':
                 host = host[4:]
                 
-            resp = h.request(link, headers={
+            resp = h.request(link + "/", headers={
                 # Faking user agent as some hosting services block not-whitelisted UA
-                'user-agent': 'Mozilla/5.0',
+                'User-Agent': 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1467.0 Safari/537.36',
                 # setting host because Cloudflare returns 403 asking for captcha if host is missing
                 'host': host
             })