mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +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
|
@ -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