mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-02-04 10:53:34 +00:00
fix(server): use has_file for mask multipart detection (#1178)
This commit is contained in:
parent
c5602a676c
commit
e7e83ed4d1
@ -537,7 +537,7 @@ int main(int argc, const char** argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<uint8_t> mask_bytes;
|
std::vector<uint8_t> mask_bytes;
|
||||||
if (req.form.has_field("mask")) {
|
if (req.form.has_file("mask")) {
|
||||||
auto file = req.form.get_file("mask");
|
auto file = req.form.get_file("mask");
|
||||||
mask_bytes.assign(file.content.begin(), file.content.end());
|
mask_bytes.assign(file.content.begin(), file.content.end());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user