diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | gitolite-webhook/main.go | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ *.swp web2irc -gitolite-webhook +gitolite-webhook/gitolite-webhook *~ diff --git a/gitolite-webhook/main.go b/gitolite-webhook/main.go index 519dcb3..229a68b 100644 --- a/gitolite-webhook/main.go +++ b/gitolite-webhook/main.go @@ -38,6 +38,7 @@ func main() { fmt.Println("Response Status:", resp.Status) body, _ := ioutil.ReadAll(resp.Body) - fmt.Println("Response Body:", string(body)) - + if string(body) != "" { + fmt.Println("Response Body:", string(body)) + } } |
