summaryrefslogtreecommitdiff
path: root/redfish-core/lib/network_protocol.hpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-04-15 06:16:57 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-04-16 19:52:26 +0300
commit7af9151495a18c805b45764b4bba6302ec214efb (patch)
treeab5dfcacabd775dbb45b1d7c96fa75552a653ce2 /redfish-core/lib/network_protocol.hpp
parentf99c379db62e1c2472d24fe8efe3ae2503ba14d4 (diff)
downloadbmcweb-7af9151495a18c805b45764b4bba6302ec214efb.tar.xz
Redfish: Allow slash at the end of Resource
This is defined in the Redfish protocol. Easiest way to allow this is to end the Node URL with "/", which most Nodes in bmcweb already had. Before: curl -k https://${bmc}/redfish/v1/TaskService/ Not Found After both /redfish/v1/TaskService/ and /redfish/v1/TaskService return the Task Service. Tested: Validator passed. Change-Id: Ic806dc5c91f631b87642e49b486a6b6da7fdf955 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/network_protocol.hpp')
-rw-r--r--redfish-core/lib/network_protocol.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/network_protocol.hpp b/redfish-core/lib/network_protocol.hpp
index 03f7bf8b9b..3d61274a47 100644
--- a/redfish-core/lib/network_protocol.hpp
+++ b/redfish-core/lib/network_protocol.hpp
@@ -131,7 +131,7 @@ class NetworkProtocol : public Node
{
public:
NetworkProtocol(CrowApp& app) :
- Node(app, "/redfish/v1/Managers/bmc/NetworkProtocol")
+ Node(app, "/redfish/v1/Managers/bmc/NetworkProtocol/")
{
entityPrivileges = {
{boost::beast::http::verb::get, {{"Login"}}},