mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
feat: add http server isolate
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use super::{ClientError, ResponseExt, ResultWithPublicKey};
|
||||
use crate::http;
|
||||
use crate::http::client::url::{ApiVersion, TargetUrl};
|
||||
use crate::http::dto::ProtocolType;
|
||||
use crate::http;
|
||||
use crate::{crypto, util};
|
||||
use lru::LruCache;
|
||||
use reqwest::{Response, StatusCode};
|
||||
|
||||
@@ -36,7 +36,7 @@ impl FileContent {
|
||||
FileContent::Stream(rx) => {
|
||||
tracing::info!("Reading file content via byte stream from application");
|
||||
rx
|
||||
},
|
||||
}
|
||||
FileContent::Path(path) => {
|
||||
tracing::info!("Reading file content from path: {}", path.display());
|
||||
let (tx, rx) = mpsc::channel(FILE_CHANNEL_CAPACITY);
|
||||
|
||||
Reference in New Issue
Block a user