Rework the server to remove rest_xxx classes.
This commit is contained in:
+2
-1
@@ -214,7 +214,8 @@ FormPart::FormPart(const std::string& name, const Path& path,
|
||||
// Determine media type from file extension.
|
||||
if (media_type_.empty()) {
|
||||
std::string extension = path.extension().string();
|
||||
media_type_ = media_types::FromExtension(extension, false);
|
||||
// TODO: Default to "application/text"?
|
||||
media_type_ = media_types::FromExtension(extension);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user