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

This commit is contained in:
Tom Thorogood 2017-04-10 02:02:53 +09:30 提交者 Peter Wu
父節點 f4a6690edc
當前提交 bc76e35b75

查看文件

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