Skip to content

Commit 3b666d5

Browse files
committed
fix bug
1 parent 6b12b70 commit 3b666d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

litepipe.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ type GitPushEvent struct {
9191
}
9292

9393
func HandleWebhook(w http.ResponseWriter, r *http.Request) {
94-
body, err := io.ReadAll(r.Body)
94+
fmt.Println("")
95+
body, err := io.ReadAll(r.Response.Request.Body)
9596
if err != nil {
9697
http.Error(w, "Failed to read request body", http.StatusInternalServerError)
9798
return

0 commit comments

Comments
 (0)