Skip to content

Commit

Permalink
Update XiaoyaProxyHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
zengge99 authored Aug 15, 2024
1 parent b539de4 commit 03d2053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void uncaughtException(Thread t, Throwable e) {
}

Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
List<String> keys = Arrays.asList("referer", "icy-metadata", "range", "connection", "accept-encoding", "user-agent", "cookie");
List<String> keys = Arrays.asList("referer", "icy-metadata", "range", "connection", "accept-encoding", "user-agent", "cookie", "authorization");
for (String key : params.keySet()) if (keys.contains(key)) headers.put(key, params.get(key));
if(url.contains("夸克")) {
headers.put("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch");
Expand Down

0 comments on commit 03d2053

Please sign in to comment.