update usage

This commit is contained in:
Archeb
2024-04-29 17:55:35 +08:00
parent 0d5e5a9f8e
commit 17dd13e0a8
4 changed files with 25 additions and 25 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ const app = express();
const axios = require("axios");
const port = 8080;
axios.defaults.headers.common["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";
axios.defaults.headers.common["User-Agent"] = process.env.USER_AGENT;
axios.defaults.headers.common["Cookie"] = process.env.YOUCOM_COOKIE;