mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-05-12 00:03:02 +08:00
fix: e2e test returns false positive due to test timing (request finished to early)
This commit is contained in:
@@ -187,6 +187,11 @@ abstract class CordovaHttpBase implements Runnable {
|
||||
request.part(name, fileNames.getString(i), types.getString(i), new ByteArrayInputStream(bytes));
|
||||
}
|
||||
}
|
||||
|
||||
// prevent sending malformed empty multipart requests (#372)
|
||||
if (buffers.length == 0) {
|
||||
request.contentType(HttpRequest.CONTENT_TYPE_FORM);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user