From 08b73e87ad4117788f0a0c76a49d1d062c55ecd0 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 25 Apr 2018 17:53:53 +0200 Subject: [PATCH] remove debug --- http/upgrade/request/private.go | 7 ------- internal/http/upgrade/request/parser/reqline/public.go | 2 -- 2 files changed, 9 deletions(-) diff --git a/http/upgrade/request/private.go b/http/upgrade/request/private.go index a63a297..045be21 100644 --- a/http/upgrade/request/private.go +++ b/http/upgrade/request/private.go @@ -52,13 +52,6 @@ func (r *T) parseHeader(b []byte) error { if err != nil { return err } - - for i, v := range head.Values { - if i == 0 { fmt.Printf("[ '%s'", v) - } else { fmt.Printf(", '%s'", v) } - } - fmt.Printf(" ]\n"); - return nil } diff --git a/internal/http/upgrade/request/parser/reqline/public.go b/internal/http/upgrade/request/parser/reqline/public.go index dad9931..340428d 100644 --- a/internal/http/upgrade/request/parser/reqline/public.go +++ b/internal/http/upgrade/request/parser/reqline/public.go @@ -34,8 +34,6 @@ func (r *T) Parse(b []byte) error { return err } - fmt.Printf("REQUEST-LINE\n------------\n - Method: '%d'\n - URI: '%s'\n - Version: %f\n", r.method, r.uri, float32(r.version)/10); - return nil } \ No newline at end of file