mirror of
https://github.com/typesense/typesense.git
synced 2025-05-21 22:33:27 +08:00
Update doc API should return 200 status code, and not 201.
This commit is contained in:
parent
f87404de37
commit
5d64d7d090
@ -1283,7 +1283,7 @@ bool patch_update_document(const std::shared_ptr<http_req>& req, const std::shar
|
||||
return false;
|
||||
}
|
||||
|
||||
res->set_201(upserted_doc_op.get().dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore));
|
||||
res->set_200(upserted_doc_op.get().dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user