修复添加header,key大小写不分的问题

This commit is contained in:
laoyuyu
2018-06-27 20:11:29 +08:00
parent 60f575c803
commit efccdcb0c2
3 changed files with 19 additions and 15 deletions

View File

@@ -73,8 +73,10 @@ public class AnyRunnModule {
Aria.download(this)
.load(url)
//.addHeader("Accept-Encoding", "gzip")
.addHeader("headers", "Referer: http://www.bilibili.com/")
.addHeader("user-agent", "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36")
.setRequestMode(RequestEnum.GET)
.setUrlProxy(Proxy.NO_PROXY)
//.setUrlProxy(Proxy.NO_PROXY)
.setFilePath(path)
//.resetState()
.start();