From eee8db82677da3616d6b039c642b5e697a87f803 Mon Sep 17 00:00:00 2001 From: Mark Scott Date: Sun, 26 Jan 2025 22:20:35 +0000 Subject: [PATCH] Check for absolute response body files path using function that works correctly on Windows --- core/cmd/hoverfly/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/cmd/hoverfly/main.go b/core/cmd/hoverfly/main.go index 99263f774..647fe1f2a 100644 --- a/core/cmd/hoverfly/main.go +++ b/core/cmd/hoverfly/main.go @@ -27,7 +27,6 @@ import ( "io" "io/ioutil" "os" - "path" "path/filepath" "strconv" "strings" @@ -438,7 +437,7 @@ func main() { if len(responseBodyFilesPath) > 0 { // Ensure file path is absolute and exists in the file system - if !path.IsAbs(responseBodyFilesPath) { + if !filepath.IsAbs(responseBodyFilesPath) { log.Fatal("Response body files path should be absolute") } absBasePath, err := filepath.Abs(responseBodyFilesPath)