The changes in 8710dabb652dae775dee31789e91608f832e62e6 broke
protocol failover when the REST protocol is listed before others
(see bug referenced below).
This patch tries to solve both issues by trying to match accept over all
the protocols, only giving up a 406 or 415 if all protocols fail, using
the last failure as the error message.
Reviewed: https:/ /review. openstack. org/172520 /git.openstack. org/cgit/ stackforge/ wsme/commit/ ?id=e31045e57a1 02182d33252e3a6 b07ddfa9488ebe
Committed: https:/
Submitter: Jenkins
Branch: master
commit e31045e57a10218 2d33252e3a6b07d dfa9488ebe
Author: Chris Dent <email address hidden>
Date: Fri Apr 10 18:41:32 2015 +0100
Multiple protocol accept or content-type matching
The changes in 8710dabb652dae7 75dee31789e9160 8f832e62e6 broke
protocol failover when the REST protocol is listed before others
(see bug referenced below).
This patch tries to solve both issues by trying to match accept over all
the protocols, only giving up a 406 or 415 if all protocols fail, using
the last failure as the error message.
Related-Bug: #1419110 46207519c245213 d5dec48ecc9
Closes-Bug: #1442710
Change-Id: I328a392151013c