Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Aug 6, 2019
1 parent 478decb commit e461b52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/cinatra/request.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ namespace cinatra {
return false;
}

return multipart_headers_.find("Content-Type") != multipart_headers_.end();
bool has_content_type = (multipart_headers_.find("Content-Type") != multipart_headers_.end());
bool has_content_disposition = (multipart_headers_.find("Content-Disposition") != multipart_headers_.end());
return has_content_type|| has_content_disposition;
}

void set_multipart_headers(const multipart_headers& headers) {
Expand Down

0 comments on commit e461b52

Please sign in to comment.