diff options
Diffstat (limited to 'gitolite-webhook')
| -rw-r--r-- | gitolite-webhook/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gitolite-webhook/main.go b/gitolite-webhook/main.go index 7d0fe5e..cfc171e 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)) + } } |
