We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df416a commit ced5030Copy full SHA for ced5030
1 file changed
internal/services/browser/api.go
@@ -9,6 +9,7 @@ package browser
9
import (
10
"encoding/json"
11
"fmt"
12
+ "net/url"
13
"math/rand"
14
"os"
15
"os/exec"
@@ -620,7 +621,7 @@ func (m Model) fetchDatabasesData(category string) dataLoadedMsg {
620
621
622
// First, get the list of database service IDs (the API returns an array of strings)
623
var serviceIDs []string
- endpoint := fmt.Sprintf("/v1/cloud/project/%s/database/service?category=%s", m.cloudProject, category)
624
+ endpoint := fmt.Sprintf("/v1/cloud/project/%s/database/service?category=%s", m.cloudProject, url.QueryEscape(category))
625
err := httpLib.Client.Get(endpoint, &serviceIDs)
626
if err != nil {
627
return dataLoadedMsg{
0 commit comments