Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
yookoala committed Feb 1, 2024
1 parent b665f6e commit 73864d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"context"
"fmt"
"io"
"log"
"net"
"net/http"
"runtime"
Expand Down Expand Up @@ -519,6 +520,8 @@ func (pipes *ResponsePipe) writeResponse(w http.ResponseWriter) (err error) {
if headerLines == 0 || !sawBlankLine {
w.WriteHeader(http.StatusInternalServerError)
err = fmt.Errorf("gofast: no headers")
bodyStr, _ := linebody.ReadString('\n')
log.Printf("debug: no header: body: %s", bodyStr)
return
}

Expand Down

0 comments on commit 73864d2

Please sign in to comment.