This commit is contained in:
FongMi 2023-02-16 00:08:40 +08:00
parent 08163cde4b
commit b398b11e8b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public class XPath extends Spider {
private HashMap<String, String> getHeaders() { private HashMap<String, String> getHeaders() {
HashMap<String, String> headers = new HashMap<>(); HashMap<String, String> headers = new HashMap<>();
headers.put("User-Agent", rule.getUa().isEmpty() ? "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36" : rule.getUa()); headers.put("User-Agent", rule.getUa().isEmpty() ? Utils.CHROME : rule.getUa());
return headers; return headers;
} }