mirror of
https://github.com/foss42/apidash.git
synced 2025-05-28 04:08:39 +08:00
Fixed a bug in toCurlString() and fixed the dart_to_curl_test with valid curls.
This commit is contained in:
@ -260,7 +260,11 @@ class Curl extends Equatable {
|
||||
if (form) {
|
||||
for (final formEntry in formData!) {
|
||||
cmd += '\\\n -F ';
|
||||
cmd += '"${formEntry.name}=${formEntry.value}" ';
|
||||
if (formEntry.type == FormDataType.file) {
|
||||
cmd += '"${formEntry.name}=@${formEntry.value}" ';
|
||||
} else {
|
||||
cmd += '"${formEntry.name}=${formEntry.value}" ';
|
||||
}
|
||||
}
|
||||
}
|
||||
// Add the insecure flag
|
||||
|
Reference in New Issue
Block a user