Skip to content

Commit

Permalink
Merge pull request #43 from krakendio/fix_post_error
Browse files Browse the repository at this point in the history
Fix post execution errors
  • Loading branch information
kpacha committed Jun 23, 2023
2 parents 42a9471 + 1356c34 commit ed2eb32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ func New(cfg lua.Config, next proxy.Proxy) proxy.Proxy {

registerResponseTable(resp, b)

err = lua.ToError(b.DoString(cfg.PostCode))
if err = lua.ToError(b.DoString(cfg.PostCode)); err != nil {
return nil, err
}

return resp, err
return resp, nil
}
}

Expand Down

0 comments on commit ed2eb32

Please sign in to comment.