mirror of
https://github.com/foss42/apidash.git
synced 2025-09-21 04:22:50 +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){
|
String? formatBody(String? body, MediaType? mediaType){
|
||||||
if(mediaType != null){
|
if(mediaType != null && body != null){
|
||||||
var subtype = mediaType.subtype;
|
var subtype = mediaType.subtype;
|
||||||
try {
|
try {
|
||||||
if(subtype.contains(kSubTypeJson)){
|
if(subtype.contains(kSubTypeJson)){
|
||||||
|
Reference in New Issue
Block a user