diff --git a/main.go b/main.go index 27c4b34..c49d86b 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func (ro routeConfig) httpHandler(w http.ResponseWriter, r *http.Request) { } if ro.ResponseFile != "" { - content, err := os.ReadFile(os.ResponseFile) + content, err := os.ReadFile(ro.ResponseFile) if err != nil { log.Error().Err(err).Msg("cant read response file") }