Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(voltron): fix voltron http request dio null error #3962

Merged
merged 11 commits into from
Jul 24, 2024
Merged
8 changes: 8 additions & 0 deletions framework/voltron/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.0.40

- resolve dio error data is null

## 0.0.39

- resolve remoteServerUrl connect without '/'

## 0.0.38

- resolve remoteServerUrl parse version id failed
Expand Down
2 changes: 1 addition & 1 deletion framework/voltron/lib/adapter/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ abstract class VoltronHttpAdapter with Destroyable {
statusMessage: e.response?.statusMessage ?? '',
headerMap: e.response?.headers.map ?? {},
requestOptions: e.requestOptions,
data: e.response?.data,
data: e.response?.data??'',
);
} else {
httpResponse = VoltronHttpResponse(
Expand Down
2 changes: 1 addition & 1 deletion framework/voltron/lib/inspector/dev_server_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DevServerHelper {
bool jsMinify,
) {
if (_remoteServerData.isValid()) {
return "${_remoteServerData.getScheme()}://${_remoteServerData.getHost()}${_remoteServerData.getPath()}?dev=$devMode&hot=$hmr&minify=$jsMinify";
return "${_remoteServerData.getScheme()}://${_remoteServerData.getHost()}/${_remoteServerData.getPath()}?dev=$devMode&hot=$hmr&minify=$jsMinify";
}
return "http://$host/$bundleName?dev=$devMode&hot=$hmr&minify=$jsMinify";
}
Expand Down
2 changes: 1 addition & 1 deletion framework/voltron/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

name: voltron
description: A flutter plugin project to render hippy page.
version: 0.0.38
version: 0.0.40
homepage: https://hippyjs.org
repository: https://github.com/Tencent/Hippy

Expand Down
Loading