Skip to content

Commit

Permalink
feat(http): change method add headers to set headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bundleman committed Dec 9, 2021
1 parent 07e3358 commit 18b827e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/drivers/http/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package http
import (
"bytes"
"context"
"github.com/MontFerret/ferret/pkg/runtime/logging"
"github.com/MontFerret/ferret/pkg/runtime/values"
"github.com/gobwas/glob"
"io"
"net/http"
"net/url"

"github.com/MontFerret/ferret/pkg/runtime/logging"
"github.com/MontFerret/ferret/pkg/runtime/values"
"github.com/gobwas/glob"

"golang.org/x/net/html/charset"

"github.com/PuerkitoBio/goquery"
Expand Down Expand Up @@ -219,7 +220,7 @@ func (drv *Driver) makeRequest(ctx context.Context, req *http.Request, params dr
params.Headers.ForEach(func(value []string, key string) bool {
v := params.Headers.Get(key)

req.Header.Add(key, v)
req.Header.Set(key, v)

logger.
Debug().
Expand Down

0 comments on commit 18b827e

Please sign in to comment.