Skip to content

Commit 5064677

Browse files
committed
Fix download/upload features
1 parent e423b58 commit 5064677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub fn server(i: &str, port: u16, cert_path: &str, cert_pass: &str) -> Result<()
171171
Ok(_) => {
172172
buff = [0; 4096];
173173
stream
174-
.read_exact(&mut buff)
174+
.read(&mut buff)
175175
.unwrap();
176176
}
177177
Err(r) => {
@@ -210,7 +210,7 @@ pub fn server(i: &str, port: u16, cert_path: &str, cert_pass: &str) -> Result<()
210210
match stream.write(cmd.as_bytes()) {
211211
Ok(_) => {
212212
stream
213-
.read_exact(&mut buff)
213+
.read(&mut buff)
214214
.expect("Cannot read file creation result");
215215
if String::from_utf8_lossy(&buff)
216216
.trim_end_matches('\0')

0 commit comments

Comments
 (0)