mirror of
https://github.com/foss42/apidash.git
synced 2025-06-12 16:38:18 +08:00
update: bug fixes.
This commit is contained in:
@ -68,7 +68,7 @@ echo \$res->getBody();
|
|||||||
[
|
[
|
||||||
'name' => '${field['name']}',
|
'name' => '${field['name']}',
|
||||||
'contents' => '${field['value']}'
|
'contents' => '${field['value']}'
|
||||||
],''';
|
],\n''';
|
||||||
}).join(),
|
}).join(),
|
||||||
});
|
});
|
||||||
result += renderedMultiPartBody;
|
result += renderedMultiPartBody;
|
||||||
@ -86,7 +86,7 @@ echo \$res->getBody();
|
|||||||
}
|
}
|
||||||
var jsonString = '';
|
var jsonString = '';
|
||||||
m.forEach((key, value) {
|
m.forEach((key, value) {
|
||||||
jsonString += "\t\t\t\t'$key' => '$value', \n";
|
jsonString += "\t\t\t\t'$key' => '$value',\n";
|
||||||
});
|
});
|
||||||
jsonString = jsonString.substring(
|
jsonString = jsonString.substring(
|
||||||
0, jsonString.length - 2); // Removing trailing comma and space
|
0, jsonString.length - 2); // Removing trailing comma and space
|
||||||
@ -104,7 +104,7 @@ echo \$res->getBody();
|
|||||||
}
|
}
|
||||||
var headersString = '';
|
var headersString = '';
|
||||||
m.forEach((key, value) {
|
m.forEach((key, value) {
|
||||||
headersString += "\t\t\t\t'$key' => '$value', \n";
|
headersString += "\t\t\t\t'$key' => '$value',\n";
|
||||||
});
|
});
|
||||||
if (requestModel.hasFormData) {
|
if (requestModel.hasFormData) {
|
||||||
m['Content-Type'] = 'multipart/form-data';
|
m['Content-Type'] = 'multipart/form-data';
|
||||||
@ -148,8 +148,8 @@ echo \$res->getBody();
|
|||||||
"url": stripUrlParams(requestModel.url),
|
"url": stripUrlParams(requestModel.url),
|
||||||
"method": harJson["method"].toLowerCase(),
|
"method": harJson["method"].toLowerCase(),
|
||||||
"queryParams":
|
"queryParams":
|
||||||
harJson["queryString"].isNotEmpty ? ". \$queryParamsStr," : "",
|
harJson["queryString"].isNotEmpty ? ". \$queryParamsStr" : "",
|
||||||
"headers": harJson["headers"].isNotEmpty ? " \$headers," : "",
|
"headers": harJson["headers"].isNotEmpty ? ", \$headers," : "",
|
||||||
"body": getRequestBody(harJson),
|
"body": getRequestBody(harJson),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user