OpenFeign/feign

MockClient decode url before matching

Open

#787 ouverte le 13 sept. 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Java (1 911 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (9 070 stars)
Métriques de merge PR
 (Merge moyen 2j 17h) (71 PRs mergées en 30 j)

Description

When executing a request, inside this method public synchronized Response execute(Request request, Request.Options options) requestKey is created based on the request. However, it decodes the url so that we cannot test the actual url will be sent by the client.

For example, if my request url contains %2F like /a%2Fb, the requestKey only contains /. When I expect the final url which is sent to server should be /a%2Fb. What I get from mockClient is a url /a/b

Guide contributeur