summaryrefslogtreecommitdiff
path: root/filter/http/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'filter/http/http.go')
-rw-r--r--filter/http/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/http/http.go b/filter/http/http.go
index e3d447b..3143718 100644
--- a/filter/http/http.go
+++ b/filter/http/http.go
@@ -26,14 +26,14 @@ func New(kv map[string]string) filter.Filter {
func (hf *HTTPFilter) Filter(w *work.Work) *work.Work {
resp, err := http.Post(hf.url, "application/json", bytes.NewReader(w.Data))
if err != nil {
- w.Err = err
+ w.SetError(err)
return w
}
defer resp.Body.Close()
filtered, err := ioutil.ReadAll(resp.Body)
if err != nil {
- w.Err = err
+ w.SetError(err)
return w
}