fixes #3021, see also https://github.com/TeamNewPipe/NewPipe-legacy/pull/21
This commit is contained in:
parent
be92921034
commit
fd3d61c6a0
|
@ -223,6 +223,7 @@ public class DownloadMission extends Mission {
|
||||||
conn.setInstanceFollowRedirects(true);
|
conn.setInstanceFollowRedirects(true);
|
||||||
conn.setRequestProperty("User-Agent", DownloaderImpl.USER_AGENT);
|
conn.setRequestProperty("User-Agent", DownloaderImpl.USER_AGENT);
|
||||||
conn.setRequestProperty("Accept", "*/*");
|
conn.setRequestProperty("Accept", "*/*");
|
||||||
|
conn.setRequestProperty("Accept-Encoding", "*");
|
||||||
|
|
||||||
if (headRequest) conn.setRequestMethod("HEAD");
|
if (headRequest) conn.setRequestMethod("HEAD");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue