This commit is contained in:
parent
37fe2268c9
commit
ce4528da0d
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -44,7 +44,7 @@ func (ro routeConfig) httpHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ro.ResponseFile != "" {
|
if ro.ResponseFile != "" {
|
||||||
content, err := os.ReadFile(os.ResponseFile)
|
content, err := os.ReadFile(ro.ResponseFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error().Err(err).Msg("cant read response file")
|
log.Error().Err(err).Msg("cant read response file")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue