Can't set request header in json format
spring-cloud-starter-openfeign: 3.1.4 feign-core: 11.8
{"a":"b""c"} 这不是一个合法的json格式吧? 试试{"a":"b""c"} 以{开始的header,feign会认为是表达式,会按照 https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.2 的规则处理的
Regardless of whether the json format is correct or not, the example I gave above already shows that the header has been parsed as the wrong string, my problem is that the header should support json format, and should not be parsed as a template even if it has {}. In addition, the link you gave is the URI Template specification, not the HTTP Header specification which is showed here: https://datatracker.ietf.org/doc/html/rfc2616#section-4.2
@hyfsy
Please see that -> https://github.com/OpenFeign/feign/issues/1987
It seems the same problem..
It's the same problem, but it hasn't been solved