From c88f66561192c953b0c51bd71918beb9f31d9330 Mon Sep 17 00:00:00 2001 From: Kapish Malik Date: Fri, 10 May 2024 00:14:22 +0530 Subject: [PATCH] invoke fallback post serve action only if it is set (#1129) --- core/hoverfly.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hoverfly.go b/core/hoverfly.go index e935e1354..d354081e2 100644 --- a/core/hoverfly.go +++ b/core/hoverfly.go @@ -219,7 +219,7 @@ func (hf *Hoverfly) processRequest(req *http.Request) (*http.Response, chan stri hf.applyGlobalDelay(requestDetails) } - if result.PostServeActionInputDetails != nil { + if result.PostServeActionInputDetails != nil && result.PostServeActionInputDetails.PostServeAction != "" { if postServeAction, ok := hf.PostServeActionDetails.Actions[result.PostServeActionInputDetails.PostServeAction]; ok { journalIDChannel := make(chan string, 1) go postServeAction.Execute(result.PostServeActionInputDetails.Pair, journalIDChannel, hf.Journal)