File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl GoogleSearchApi {
3636 let mut query_pairs = url. query_pairs_mut ( ) ;
3737 query_pairs. append_pair ( "key" , & self . api_key ) ;
3838 query_pairs. append_pair ( "cx" , & self . search_engine_id ) ;
39- query_pairs. append_pair ( "q" , & urlencoding :: encode ( & request. query ) ) ;
39+ query_pairs. append_pair ( "q" , & request. query ) ;
4040 if let Some ( num) = request. max_results {
4141 query_pairs. append_pair ( "num" , & num. to_string ( ) ) ;
4242 }
@@ -56,7 +56,7 @@ impl GoogleSearchApi {
5656 query_pairs. append_pair ( "dateRestrict" , date_restrict) ;
5757 }
5858 if let Some ( site_search) = & request. site_search {
59- query_pairs. append_pair ( "siteSearch" , & urlencoding :: encode ( site_search) ) ;
59+ query_pairs. append_pair ( "siteSearch" , site_search) ;
6060 }
6161 if let Some ( site_search_filter) = & request. site_search_filter {
6262 query_pairs. append_pair ( "siteSearchFilter" , site_search_filter) ;
You can’t perform that action at this time.
0 commit comments