2 Commits

Author SHA1 Message Date
cuddle-please
aa10f715ed chore(release): 0.0.4
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2025-08-03 11:33:51 +00:00
97f5c3a500 feat: sanitise output
All checks were successful
continuous-integration/drone/push Build is passing
2025-08-03 13:33:31 +02:00
2 changed files with 4 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.0.4] - 2025-08-03
### Added
- sanitise output
- replace output spawn with native tokio method
### Other

View File

@@ -59,12 +59,10 @@ impl RemoteCopier {
let resp = client.paste(PasteRequest {}).await?;
let output = resp.into_inner().content;
tracing::info!(
content = std::str::from_utf8(&output).unwrap_or_default(),
"received paste response"
);
let output = String::from_utf8_lossy(&output);
tracing::info!(content = output.to_string(), "received paste response");
Ok(output)
Ok(output.as_bytes().to_vec())
}
}