mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix error message when empty payload
This commit is contained in:
parent
93ce32d94d
commit
ae9a41a19f
4 changed files with 2 additions and 49 deletions
|
@ -38,7 +38,6 @@ impl Data {
|
|||
file.sync_all().await?;
|
||||
let file = file.into_std().await;
|
||||
|
||||
|
||||
let index_controller = self.index_controller.clone();
|
||||
let update = tokio::task::spawn_blocking(move ||{
|
||||
let mmap;
|
||||
|
|
|
@ -88,7 +88,7 @@ impl UpdateHandler {
|
|||
builder.index_documents_method(method);
|
||||
|
||||
let gzipped = true;
|
||||
let reader = if gzipped {
|
||||
let reader = if gzipped && !content.is_empty() {
|
||||
Box::new(GzDecoder::new(content))
|
||||
} else {
|
||||
Box::new(content) as Box<dyn io::Read>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue