diff --git a/cmd/server/tests/series_integration_test.go b/cmd/server/tests/series_integration_test.go index 0b732ae..4371596 100644 --- a/cmd/server/tests/series_integration_test.go +++ b/cmd/server/tests/series_integration_test.go @@ -6,6 +6,7 @@ import ( "fmt" "io" "net/http" + "net/url" "testing" "github.com/stretchr/testify/assert" @@ -254,7 +255,7 @@ func (s *SeriesIntegrationTestSuite) TestGetSeriesBooks_Unauthorized() { func (s *SeriesIntegrationTestSuite) TestGetSeries_SpecialCharactersInName() { seriesName := "Series: Book & Other (Vol. 1)" - url := fmt.Sprintf("%s/api/series/books?library_id=%s&name=%s", s.setup.Server.URL, s.libraryID, seriesName) + url := fmt.Sprintf("%s/api/series/books?library_id=%s&name=%s", s.setup.Server.URL, s.libraryID, url.QueryEscape(seriesName)) req, _ := http.NewRequest("GET", url, nil) req.Header.Set("Authorization", "Bearer "+s.token)