mirror of
https://github.com/foss42/apidash.git
synced 2025-07-08 10:16:43 +08:00
Update http_utils.dart
This commit is contained in:
@ -87,8 +87,8 @@ String getRequestTitleFromUrl(String? url) {
|
||||
}
|
||||
}
|
||||
|
||||
String? formatBody(String body, MediaType? mediaType){
|
||||
if(mediaType != null){
|
||||
String? formatBody(String? body, MediaType? mediaType){
|
||||
if(mediaType != null && body != null){
|
||||
var subtype = mediaType.subtype;
|
||||
try {
|
||||
if(subtype.contains(kSubTypeJson)){
|
||||
|
Reference in New Issue
Block a user