From e3a15e2a45a6dee16b774cf3f67e3012bdfa4a37 Mon Sep 17 00:00:00 2001
From: notsobad <wangxiaohugg@gmail.com>
Date: Thu, 18 Jul 2024 18:47:30 +0800
Subject: [PATCH] add protol in /trace

---
 main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go
index 9c6a4a3..83b058f 100644
--- a/main.go
+++ b/main.go
@@ -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 {