1
0
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:
Ankit Mahato
2023-03-23 02:24:53 +05:30
parent cb3865b192
commit dd2ab16f58

@ -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)){