From 0106e09eedc980222b80e74d084ae8355108e6ec Mon Sep 17 00:00:00 2001 From: Ice Lam Date: Tue, 12 Mar 2024 18:04:07 +0800 Subject: [PATCH] feat: remove hard-coded user agent string which is unnecessary to fire a successful call --- app/handler.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/handler.py b/app/handler.py index 090fd7c..ca5bfcd 100644 --- a/app/handler.py +++ b/app/handler.py @@ -45,7 +45,6 @@ def get_question_of_today(): }, headers={ "authority": "leetcode.com", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36", } )