Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/webdav_dio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class WdDio with DioMixin implements Dio {
onReceiveProgress: onReceiveProgress,
cancelToken: cancelToken,
);
} else if (resp.statusCode == 302) {
} else if (resp.statusCode == 301 || resp.statusCode == 302) {
// 文件位置被重定向到新路径
if (resp.headers.map.containsKey('location')) {
List<String>? list = resp.headers.map['location'];
Expand Down