mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
remove nil response to 404 translation for PatchOperation (#13167)
* remove nil response to 404 translation for PatchOperation * go get vault-plugin-secrets-kv@master
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
func RespondErrorCommon(req *Request, resp *Response, err error) (int, error) {
|
||||
if err == nil && (resp == nil || !resp.IsError()) {
|
||||
switch {
|
||||
case req.Operation == ReadOperation, req.Operation == PatchOperation:
|
||||
case req.Operation == ReadOperation:
|
||||
if resp == nil {
|
||||
return http.StatusNotFound, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user