diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-10-25 02:30:02 +0300 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2020-07-16 19:30:30 +0300 |
commit | b41187fac9d82be2ea26bd8695f2beba135e80f1 (patch) | |
tree | 1a0dd10ee2c3d2e470e9ccbfe7cb7171753673e1 /include/image_upload.hpp | |
parent | 3909dc82a003893812f598434d6c4558107afa28 (diff) | |
download | bmcweb-b41187fac9d82be2ea26bd8695f2beba135e80f1.tar.xz |
Deprecate the "" operator, and isEqP
While a cool example of how to do string matching in constexpr space,
the set of verbs available to HTTP has been fixed for a very long time.
This was ported over to beast a while back, but we kept the API for....
mediocre reasons of backward compatibility. Remove that, and delete the
now unused code.
Tested: Built and loaded on a Witherspoon. Validator passes.
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: Iaf048e196f9b6e71983189877203bf80390df286
Signed-off-by: James Feist <james.feist@linux.intel.com>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'include/image_upload.hpp')
-rw-r--r-- | include/image_upload.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/image_upload.hpp b/include/image_upload.hpp index 64adccd023..c1ec682778 100644 --- a/include/image_upload.hpp +++ b/include/image_upload.hpp @@ -114,15 +114,15 @@ void requestRoutes(Crow<Middlewares...>& app) { BMCWEB_ROUTE(app, "/upload/image/<str>") .requires({"ConfigureComponents", "ConfigureManager"}) - .methods("POST"_method, - "PUT"_method)([](const crow::Request& req, crow::Response& res, - const std::string& filename) { - uploadImageHandler(req, res, filename); - }); + .methods(boost::beast::http::verb::post, boost::beast::http::verb::put)( + [](const crow::Request& req, crow::Response& res, + const std::string& filename) { + uploadImageHandler(req, res, filename); + }); BMCWEB_ROUTE(app, "/upload/image") .requires({"ConfigureComponents", "ConfigureManager"}) - .methods("POST"_method, "PUT"_method)( + .methods(boost::beast::http::verb::post, boost::beast::http::verb::put)( [](const crow::Request& req, crow::Response& res) { uploadImageHandler(req, res, ""); }); |