From 62c5847625426999b88e7cc659ad30f8d7049b01 Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Fri, 23 Dec 2016 14:27:39 +0800 Subject: [PATCH] fix typo --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index 7a68fce..12afc34 100644 --- a/handler.go +++ b/handler.go @@ -102,7 +102,7 @@ func (h *handler) handleCONNECT(w http.ResponseWriter, r *http.Request) { return } - if r.ProtoMarjor == 1 { + if r.ProtoMajor == 1 { // HTTP/1.1 hj, _ := w.(http.Hijacker) conn1, _, _ := hj.Hijack()