rest: replace rf_names[0].rf by RESTResponseFormat::UNDEF for code clarity
This commit is contained in:
1 parent
e3f416dbf7
commit
6d19815cd4
1 file changed
+2
-2
+2
-2
@@ -144,7 +144,7 @@ RESTResponseFormat ParseDataFormat(std::string& param, const std::string& strReq
|
|||||||
|
|
||||||
// No format string is found
|
// No format string is found
|
||||||
if (pos_format == std::string::npos) {
|
if (pos_format == std::string::npos) {
|
||||||
return rf_names[0].rf;
|
return RESTResponseFormat::UNDEF;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Match format string to available formats
|
// Match format string to available formats
|
||||||
@@ -157,7 +157,7 @@ RESTResponseFormat ParseDataFormat(std::string& param, const std::string& strReq
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If no suffix is found, return RESTResponseFormat::UNDEF and original string without query string
|
// If no suffix is found, return RESTResponseFormat::UNDEF and original string without query string
|
||||||
return rf_names[0].rf;
|
return RESTResponseFormat::UNDEF;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string AvailableDataFormatsString()
|
static std::string AvailableDataFormatsString()
|
||||||
|
|||||||
Reference in new issue
Block a user