Skip to content

Commit

Permalink
roll back?
Browse files Browse the repository at this point in the history
  • Loading branch information
lia-07 committed Oct 23, 2023
1 parent edc98fe commit 55b3f31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions litepipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func setDefaultsAndValidateConfig() {
func start() {
http.HandleFunc("/", HandleWebhook)

fmt.Println("\n\033[30;46m LitePipe \033[0m version 0.1.6")
fmt.Println("\n\033[30;46m LitePipe \033[0m version 0.1.4")
fmt.Printf("PID: %d\n", os.Getpid())
fmt.Printf("Listening on port %d\n\n", config.Port)

Expand All @@ -91,7 +91,6 @@ type GitPushEvent struct {
}

func HandleWebhook(w http.ResponseWriter, r *http.Request) {
fmt.Println(io.ReadAll(r.Body))
body, err := io.ReadAll(r.Body)
if err != nil {
http.Error(w, "Failed to read request body", http.StatusInternalServerError)
Expand Down

0 comments on commit 55b3f31

Please sign in to comment.