OpenFeign/feign

MockClient decode url before matching

オープン

#787 opened on 2018/09/13

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Java (1,911 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (9,070 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド