Skip to content

Commit

Permalink
Merge pull request #9 from hajimehoshi/fix
Browse files Browse the repository at this point in the history
Fix build error
  • Loading branch information
mrichman authored Aug 3, 2018
2 parents 932063e + 73ec90b commit 519b183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 519b183

Please sign in to comment.