Skip to content

Commit e7e83ed

Browse files
authored
fix(server): use has_file for mask multipart detection (#1178)
1 parent c5602a6 commit e7e83ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ int main(int argc, const char** argv) {
537537
}
538538

539539
std::vector<uint8_t> mask_bytes;
540-
if (req.form.has_field("mask")) {
540+
if (req.form.has_file("mask")) {
541541
auto file = req.form.get_file("mask");
542542
mask_bytes.assign(file.content.begin(), file.content.end());
543543
}

0 commit comments

Comments
 (0)