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