Skip to content

Commit

Permalink
add protol in /trace
Browse files Browse the repository at this point in the history
  • Loading branch information
notsobad committed Jul 18, 2024
1 parent dc5c68a commit e3a15e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func chunkHandler(w http.ResponseWriter, r *http.Request) {
}

func traceHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "%s %s\r\n", r.Method, r.URL)
fmt.Fprintf(w, "%s %s %s\r\n", r.Method, r.URL, r.Proto)

for name, values := range r.Header {
for _, value := range values {
Expand Down

0 comments on commit e3a15e2

Please sign in to comment.