소스 검색

Add total User-Agent (#2551)

pull/2717/head
Padmashree Jha 2 년 전
committed by GitHub
부모
커밋
b5932d06fa
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      build/validate_links.py

+ 2
- 2
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
})


불러오는 중...
취소
저장