Fixes#5616
Ubuntu CI run 42368406605 failed it: "the query's "4410" is in
usage.jsonl", where the only 4410 was the fake server's random port,
host 127.0.0.1:44105. The row rightly logs the host, so a query word
made of digits matches the port now and then. The query is letters
only now, as 4a4a82cd4 did for the sibling TestSearchAPIAsksAreLogged;
the check that no query word reaches usage.jsonl is unchanged, and the
new word still rides in the GET URL, so a leaked URL still fails it.
Test-only; no gateway code changes.
Broken by hand: the untouched test with the fake server's listener
pinned to 127.0.0.1:44105 (throwaway harness, not committed) fails with
the CI message: the query's "4410" is in usage.jsonl. With this change
and the same pin it passes.
Run at this tree (origin/main 56f095604 + this):
go test -tags nogui -race -count=20 -run 'TestSearchAPI|TestOwnSearchIsLogged' ./internal/gateway ok.
GOOS=linux go vet -tags nogui ./internal/gateway and
GOOS=windows go vet ./internal/gateway clean; gofmt -l and
git diff --check clean. Not run: the whole gateway package (one-line
test literal change).