From 85dee71f1e3f854dc3dfe1171065f31b6af4224b Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 10 Jul 2022 18:11:46 +0800 Subject: [PATCH] EnsureSuccessStatusCode --- src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs b/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs index 14e4f99..80522dc 100644 --- a/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs +++ b/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs @@ -60,6 +60,7 @@ namespace N_m3u8DL_RE.Common.Util return await DoGetAsync(redirectedUrl, headers); } } + webResponse.EnsureSuccessStatusCode(); return webResponse; }