OpenFeign/feign

MockClient decode url before matching

Open

#787 建立於 2018年9月13日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Java (1,911 fork)batch import
bughelp wanted

倉庫指標

Star
 (9,070 star)
PR 合併指標
 (平均合併 2天 17小時) (30 天內合併 71 個 PR)

描述

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

貢獻者指南