Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Veronika Solovei committed Apr 19, 2019
1 parent 7bf0358 commit e617bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stored_requests/backends/http_fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ func (fetcher *HttpFetcher) FetchCategories(ctx context.Context, primaryAdServer
if data, ok := fetcher.Categories[dataName]; ok {
return data[iabCategory].Id, nil
}

//in NewFetcher function there is a code to add "?" at the end of url
//in case of categories we don't expect to have any parameters, that's why we need to remove "?"
url := fmt.Sprintf("%s/%s/%s.json", strings.Replace(fetcher.Endpoint, "?", "", -1), primaryAdServer, publisherId)

httpReq, err := http.NewRequest("GET", url, nil)
Expand Down

0 comments on commit e617bd2

Please sign in to comment.