Add support for HEAD operations (#19520)

* Add header operation to sdk/logical

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add support for routing HEAD operations

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
This commit is contained in:
Alexander Scheel
2023-03-21 18:37:17 -04:00
committed by GitHub
parent b2e2573fa3
commit 38fc3e79f2
5 changed files with 17 additions and 3 deletions

View File

@@ -42,6 +42,14 @@ func TestResponseUtil_RespondErrorCommon_basic(t *testing.T) {
respErr: nil,
expectedStatus: 404,
},
{
title: "Header not found",
req: &Request{
Operation: HeaderOperation,
},
respErr: nil,
expectedStatus: 404,
},
{
title: "List with response and no keys",
req: &Request{