commit 51ef6ca2cb922940c0b7e1c5e9b1dbe23c9b352c
Author: Hiromu Asahina <email address hidden>
Date: Sat May 28 13:15:24 2022 +0000
Fix usage of deprecated .best_match()
The webob emits a warning for best_match method for the reason that its
algorithm does not conform to RFC 7231 [1]. This patch replace
`best_match` with `acceptable_offers` as v2 API does [2].
The following deprecation warnings are gone with the patch:
- cceptparse.py:1047: DeprecationWarning: The behavior of
AcceptValidHeader.best_match is currently being maintained for
backward compatibility, but it will be deprecated in the future, as it
does not conform to the RFC.
Reviewed: https:/ /review. opendev. org/c/openstack /tacker/ +/845220 /opendev. org/openstack/ tacker/ commit/ 51ef6ca2cb92294 0c0b7e1c5e9b1db e23c9b352c
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 51ef6ca2cb92294 0c0b7e1c5e9b1db e23c9b352c
Author: Hiromu Asahina <email address hidden>
Date: Sat May 28 13:15:24 2022 +0000
Fix usage of deprecated .best_match()
The webob emits a warning for best_match method for the reason that its
algorithm does not conform to RFC 7231 [1]. This patch replace
`best_match` with `acceptable_offers` as v2 API does [2].
The following deprecation warnings are gone with the patch:
- cceptparse.py:1047: DeprecationWarning: The behavior of idHeader. best_match is currently being maintained for
AcceptVal
backward compatibility, but it will be deprecated in the future, as it
does not conform to the RFC.
[1] /docs.pylonspro ject.org/ projects/ webob/en/ stable/ api/webob. html#webob. acceptparse. AcceptValidHead er.best_ match /github. com/openstack/ tacker/ blob/master/ tacker/ sol_refactored/ api/wsgi. py#L37
https:/
[2]
https:/
Change-Id: Ia68fa8acb7a27c 17f9da7eea58711 2da4dedb892 020115395427fc0 10cfc89352)
Closes-Bug: #1976220
(cherry picked from commit e8dfc6b0372ba86