mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
Update map_extensions.dart
This commit is contained in:
@@ -23,4 +23,10 @@ extension MapExtension on Map {
|
||||
String? getValueContentType() {
|
||||
return this[getKeyContentType()];
|
||||
}
|
||||
|
||||
Map removeKeyContentType() {
|
||||
removeWhere(
|
||||
(key, value) => key.toLowerCase() == HttpHeaders.contentTypeHeader);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user