Skip to content

Commit

Permalink
feat(http): return to add header
Browse files Browse the repository at this point in the history
  • Loading branch information
bundleman committed Dec 14, 2021
1 parent 6525c7a commit cb5019f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/drivers/http/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ func (drv *Driver) convertToUTF8(reader io.Reader, srcCharset string) (data io.R
func (drv *Driver) makeRequest(ctx context.Context, req *http.Request, params drivers.Params) {
logger := logging.FromContext(ctx)

req.Header.Set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8")
req.Header.Set("Accept-Language", "en-US,en;q=0.9,ru;q=0.8")
req.Header.Set("Cache-Control", "no-cache")
req.Header.Set("Pragma", "no-cache")
req.Header.Add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8")
req.Header.Add("Accept-Language", "en-US,en;q=0.9,ru;q=0.8")
req.Header.Add("Cache-Control", "no-cache")
req.Header.Add("Pragma", "no-cache")

if params.Headers != nil {
params.Headers.ForEach(func(value []string, key string) bool {
Expand Down

0 comments on commit cb5019f

Please sign in to comment.