Commit 5224d11 1 parent c9ba1b5 commit 5224d11 Copy full SHA for 5224d11
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ pub fn op_fetch(
69
69
70
70
let body = HttpBody :: from ( res. into_body ( ) ) ;
71
71
let mut table = state_. lock_resource_table ( ) ;
72
- let rid = table. add ( "httpBody" , Box :: new ( StreamResource :: HttpBody ( body) ) ) ;
72
+ let rid = table. add (
73
+ "httpBody" ,
74
+ Box :: new ( StreamResource :: HttpBody ( Box :: new ( body) ) ) ,
75
+ ) ;
73
76
74
77
let json_res = json ! ( {
75
78
"bodyRid" : rid,
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ pub enum StreamResource {
85
85
TcpStream ( tokio:: net:: TcpStream ) ,
86
86
ServerTlsStream ( Box < ServerTlsStream < TcpStream > > ) ,
87
87
ClientTlsStream ( Box < ClientTlsStream < TcpStream > > ) ,
88
- HttpBody ( HttpBody ) ,
88
+ HttpBody ( Box < HttpBody > ) ,
89
89
ChildStdin ( tokio_process:: ChildStdin ) ,
90
90
ChildStdout ( tokio_process:: ChildStdout ) ,
91
91
ChildStderr ( tokio_process:: ChildStderr ) ,
You can’t perform that action at this time.
0 commit comments