Skip to content

Commit

Permalink
serpapi: remove unnecessary replacement from url (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail14098 authored and tmc committed Dec 5, 2023
1 parent ba41483 commit ec6cbd9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/serpapi/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"io"
"net/http"
"net/url"
"strings"
)

const _url = "https://serpapi.com/search"
Expand All @@ -31,7 +30,6 @@ func New(apiKey string) *Client {

func (s *Client) Search(ctx context.Context, query string) (string, error) {
params := make(url.Values)
query = strings.ReplaceAll(query, " ", "+")
params.Add("q", query)
params.Add("google_domain", "google.com")
params.Add("gl", "us")
Expand Down

0 comments on commit ec6cbd9

Please sign in to comment.