OpenFeign / feign

Feign makes writing java http clients easier
Apache License 2.0
9.37k stars 1.91k forks source link

Resolving response protocol version using OkHttp3 fails due to OkHttp3.Protocoll class .toString() method not returning name of class #2427

Closed steam0 closed 2 months ago

steam0 commented 2 months ago

When resolving http version for responses when using OkHttp3 client, the function enumForName() fails due to the toString()-method on Okhttp3.Protocoll returning protocol instead of name.

Screenshot 2024-05-21 at 13 19 02

It would seem like the invocation of enumForName should be fed protocol.name instead if protocol in order to set the correct response protocol.

steam0 commented 1 month ago

@velo , would you min creating a new patch release?