Convert dict headers and Webob headers into lowercase.
In the fold_headers function, if the headers behaves like a dict,
they were being retured unchanged. This would cause issues in the
later processing to extract the microversion header, which matches
on lower case strings.
Convert these headers to lowercase also provide a test case to
validate the header is being parsed correctly.
Reviewed: https:/ /review. openstack. org/347993 /git.openstack. org/cgit/ openstack/ microversion- parse/commit/ ?id=1f6eac7c3df 048679663919f75 c2bcecd3e183a2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1f6eac7c3df0486 79663919f75c2bc ecd3e183a2
Author: PollyZ <email address hidden>
Date: Tue Jul 26 15:28:18 2016 -0500
Convert dict headers and Webob headers into lowercase.
In the fold_headers function, if the headers behaves like a dict,
they were being retured unchanged. This would cause issues in the
later processing to extract the microversion header, which matches
on lower case strings.
Convert these headers to lowercase also provide a test case to
validate the header is being parsed correctly.
Change-Id: I8501c813d668c0 a32905906e4ef3f 8c6c6b12de2
Close-Bug:# 1606351