Browse Source

tris-localserver: fix Content-Type header for /ch endpoint (#21)

v1.2.3
Tom Thorogood 7 years ago
committed by Peter Wu
parent
commit
bc76e35b75
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      _dev/tris-localserver/server.go

+ 1
- 1
_dev/tris-localserver/server.go View File

@@ -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))
})



Loading…
Cancel
Save