1
0
Fork 0

Resync oxy with original repository

This commit is contained in:
SALLEYRON Julien 2017-11-22 18:20:03 +01:00 committed by Traefiker
parent da5e4a13bf
commit bee8ebb00b
31 changed files with 650 additions and 808 deletions

View file

@ -9,6 +9,7 @@ import (
"net/url"
"strings"
log "github.com/Sirupsen/logrus"
"github.com/vulcand/oxy/utils"
)
@ -68,9 +69,10 @@ func (w *WebhookSideEffect) Exec() error {
if re.Body != nil {
defer re.Body.Close()
}
_, err = ioutil.ReadAll(re.Body)
body, err := ioutil.ReadAll(re.Body)
if err != nil {
return err
}
log.Infof("%v got response: (%s): %s", w, re.Status, string(body))
return nil
}