Skip to content

Commit

Permalink
Check for absolute response body files path using function that works…
Browse files Browse the repository at this point in the history
… correctly on Windows (#1174)
  • Loading branch information
codebrewer authored Jan 26, 2025
1 parent c93e443 commit 7453cc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/cmd/hoverfly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
"strconv"
"strings"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7453cc4

Please sign in to comment.