mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 19:39:25 +08:00
refactor: formatting action revert
This commit is contained in:
@@ -126,8 +126,7 @@ multipart/form-data; boundary={{boundary}}''';
|
||||
Uri? uri = rec.$1;
|
||||
var method = requestModel.method;
|
||||
var requestBody = requestModel.body;
|
||||
if (requestModel.bodyContentType == ContentType.json &&
|
||||
requestBody?.isNotEmpty == true) {
|
||||
if (requestModel.bodyContentType == ContentType.json && requestBody?.isNotEmpty == true){
|
||||
result += kJsonImport;
|
||||
}
|
||||
if (uri != null) {
|
||||
@@ -137,7 +136,8 @@ multipart/form-data; boundary={{boundary}}''';
|
||||
'isFormDataRequest': requestModel.hasFormData,
|
||||
"method": requestModel.method.name.toLowerCase()
|
||||
});
|
||||
|
||||
|
||||
|
||||
if (kMethodsWithBody.contains(method) && requestBody != null) {
|
||||
var contentLength = utf8.encode(requestBody).length;
|
||||
if (contentLength > 0) {
|
||||
|
||||
Reference in New Issue
Block a user