Skip to content

Commit

Permalink
fix(voltron): fix voltron http request dio null error (#3962)
Browse files Browse the repository at this point in the history
* fix(voltron): resolve remoteServerUrl parse version id failed

* fix(voltron): add license for flutter_render_test.dart

* fix(voltron): remoteServerUrl connect without path

* fix(voltron): remoteServerUrl connect without path

* fix(voltron): remoteServerUrl connect without path

* fix(voltron): fix voltron http request dio null error

* fix(voltron): fix voltron http request dio null error

---------

Co-authored-by: OpenHippy <[email protected]>
  • Loading branch information
lvfen and open-hippy authored Jul 24, 2024
1 parent 316627d commit fa4120a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
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

0 comments on commit fa4120a

Please sign in to comment.