From bc76e35b75e5f5116ae857203fab6e65401d587b Mon Sep 17 00:00:00 2001 From: Tom Thorogood Date: Mon, 10 Apr 2017 02:02:53 +0930 Subject: [PATCH] tris-localserver: fix Content-Type header for /ch endpoint (#21) --- _dev/tris-localserver/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_dev/tris-localserver/server.go b/_dev/tris-localserver/server.go index a9fd70e..be78f04 100644 --- a/_dev/tris-localserver/server.go +++ b/_dev/tris-localserver/server.go @@ -83,7 +83,7 @@ func main() { }) http.HandleFunc("/ch", func(w http.ResponseWriter, r *http.Request) { - r.Header.Set("Content-Type", "text/plain") + w.Header().Set("Content-Type", "text/plain") fmt.Fprintf(w, "Client Hello packet (%d bytes):\n%s", len(r.TLS.ClientHello), hex.Dump(r.TLS.ClientHello)) })