Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
f0e4e996ed
1 file changed
+4
+4
@@ -53,6 +53,10 @@ public class PigxFeignClientInterceptor extends OAuth2FeignRequestInterceptor {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void apply(RequestTemplate template) {
|
public void apply(RequestTemplate template) {
|
||||||
|
if (template.headers().isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (oAuth2ClientContext != null
|
if (oAuth2ClientContext != null
|
||||||
&& oAuth2ClientContext.getAccessToken() != null) {
|
&& oAuth2ClientContext.getAccessToken() != null) {
|
||||||
super.apply(template);
|
super.apply(template);
|
||||||
|
|||||||
Reference in new issue
Block a user