Skip to content

Commit

Permalink
Endret enkoding #deploy-tenor-search-service
Browse files Browse the repository at this point in the history
  • Loading branch information
krharum committed Jan 12, 2024
1 parent c381784 commit 04d0552
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ public Mono<TenorResponse> call() {

return webClient.get()
.uri(uriBuilder -> uriBuilder.path(TENOR_QUERY_URL)
.queryParam("kql", URLEncoder.encode(query, StandardCharsets.UTF_8))
.queryParam("kql", URLEncoder.encode(query, StandardCharsets.US_ASCII))
.queryParam("nokkelinformasjon", true)
.build())
.header("User-Agent", "test")
.header(HttpHeaders.AUTHORIZATION, "Bearer " + token)
.retrieve()
.bodyToMono(JsonNode.class)
Expand Down

0 comments on commit 04d0552

Please sign in to comment.