为什么以下结果会导致“未经授权”响应:
webClient
.getAbs("http://hello.com")
.basicAuthentication("user", "pw")
.rxSend()
.subscribe();
而以下工作正常:
webClient
.getAbs("http://hello.com")
.putHeader("Authorization", "Basic " + Base64.getEncoder().encodeToString("user:pw".getBytes()) )
.rxSend()
.subscribe();