mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: article: show code
Closes #759 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -25,7 +25,7 @@ class UrlUtils {
|
||||
),
|
||||
);
|
||||
if (response.statusCode == 302 || response.statusCode == 301) {
|
||||
String? redirectUrl = response.headers['location']?.first;
|
||||
String? redirectUrl = response.headers['location']?.firstOrNull;
|
||||
debugPrint('redirectUrl: $redirectUrl');
|
||||
if (redirectUrl != null) {
|
||||
if (redirectUrl.startsWith('/')) {
|
||||
|
||||
Reference in New Issue
Block a user