OpenFeign / feign

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

Using Protocol.name when resolving HTTP protocol for responses #2428

Closed steam0 closed 2 months ago

steam0 commented 2 months ago

The toString() method on OkHttp3.Protocol does not return a value that can be used to resolve to enum ProtocolVersion.

This change extracts the name from the Protocol and uses that instead of the whole Protocol object.

Fixes #2427

steam0 commented 2 months ago

@velo, thanks for the merge. When do you expect that the next version will be released?