Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
#1549 Set RawQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
agrimmer committed Apr 29, 2020
1 parent 9aeef2a commit 74a49b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/utils/projectUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (p *ProjectHandler) GetAllProjects() ([]*models.Project, error) {
q := url.Query()
if nextPageKey != "" {
q.Set("nextPageKey", nextPageKey)
url.RawQuery = q.Encode()
}
req, err := http.NewRequest("GET", url.String(), nil)
req.Header.Set("Content-Type", "application/json")
Expand Down
1 change: 1 addition & 0 deletions pkg/api/utils/serviceUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (s *ServiceHandler) GetAllServices(project string, stage string) ([]*models
q := url.Query()
if nextPageKey != "" {
q.Set("nextPageKey", nextPageKey)
url.RawQuery = q.Encode()
}
req, err := http.NewRequest("GET", url.String(), nil)
req.Header.Set("Content-Type", "application/json")
Expand Down
1 change: 1 addition & 0 deletions pkg/api/utils/stageUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (s *StageHandler) GetAllStages(project string) ([]*models.Stage, error) {
q := url.Query()
if nextPageKey != "" {
q.Set("nextPageKey", nextPageKey)
url.RawQuery = q.Encode()
}
req, err := http.NewRequest("GET", url.String(), nil)
req.Header.Set("Content-Type", "application/json")
Expand Down

0 comments on commit 74a49b0

Please sign in to comment.