From 73ec90ba91b7d1cdf7abd24032db7e64ca2e5d29 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 17 Jul 2018 14:49:00 +0900 Subject: [PATCH] Fix build error --- utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.go b/utils.go index 23465ba..e9ac502 100644 --- a/utils.go +++ b/utils.go @@ -8,7 +8,7 @@ import ( "net/url" "sort" - "golang.org/x/net/lex/httplex" + "golang.org/x/net/http/httpguts" log "github.com/Sirupsen/logrus" ) @@ -49,7 +49,7 @@ func EntryToRequest(entry *Entry, ignoreHarCookies bool) (*http.Request, error) req, _ := http.NewRequest(entry.Request.Method, entry.Request.URL, bytes.NewBuffer([]byte(body))) for _, h := range entry.Request.Headers { - if httplex.ValidHeaderFieldName(h.Name) && httplex.ValidHeaderFieldValue(h.Value) && h.Name != "Cookie" { + if httpguts.ValidHeaderFieldName(h.Name) && httpguts.ValidHeaderFieldValue(h.Value) && h.Name != "Cookie" { req.Header.Add(h.Name, h.Value) } }