remove // TODO add content disposition parsing
This commit is contained in:
@@ -2,8 +2,8 @@ import 'dart:convert';
|
|||||||
|
|
||||||
import 'package:dartx/dartx.dart';
|
import 'package:dartx/dartx.dart';
|
||||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||||
import 'package:uuid/uuid.dart';
|
|
||||||
import 'package:loggy/loggy.dart';
|
import 'package:loggy/loggy.dart';
|
||||||
|
import 'package:uuid/uuid.dart';
|
||||||
|
|
||||||
part 'profile.freezed.dart';
|
part 'profile.freezed.dart';
|
||||||
part 'profile.g.dart';
|
part 'profile.g.dart';
|
||||||
@@ -25,7 +25,6 @@ class Profile with _$Profile {
|
|||||||
ProfileExtra? extra,
|
ProfileExtra? extra,
|
||||||
}) = _Profile;
|
}) = _Profile;
|
||||||
|
|
||||||
// TODO add content disposition parsing
|
|
||||||
factory Profile.fromResponse(
|
factory Profile.fromResponse(
|
||||||
String url,
|
String url,
|
||||||
Map<String, List<String>> headers,
|
Map<String, List<String>> headers,
|
||||||
@@ -53,7 +52,7 @@ class Profile with _$Profile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (title.isEmpty) {
|
if (title.isEmpty) {
|
||||||
final part = url.split("/").lastOrNull;
|
final part = url.split("/").lastOrNull;
|
||||||
if (part != null) {
|
if (part != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user