Commit 315defa41f938ab0d4911a470f5aaace2d7102b3

Authored by wdn127929
1 parent 68913890

dio

Showing 1 changed file with 2 additions and 1 deletions
... ... @@ -342,6 +342,7 @@ class DioUtil {
options = new Options();
}
options.method = method;
options.contentType = Headers.formUrlEncodedContentType;
return options;
}
... ... @@ -417,7 +418,7 @@ class DioUtil {
/// get Def Options.
static BaseOptions getDefOptions() {
BaseOptions options = new BaseOptions();
// options.contentType = Headers.formUrlEncodedContentType;
options.contentType = Headers.formUrlEncodedContentType;
options.connectTimeout = 1000 * 10; //默认10s
options.receiveTimeout = 1000 * 10; //默认10s
return options;
... ...