We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 588ebc2 commit a6065d0Copy full SHA for a6065d0
ask-sdk-webservice-support/ask_sdk_webservice_support/verifier.py
@@ -187,8 +187,13 @@ def verify(
187
:raises: :py:class:`VerificationException` if headers doesn't
188
exist or verification fails
189
"""
190
- cert_url = headers.get(self._signature_cert_chain_url_key)
191
- signature = headers.get(self._signature_key)
+ cert_url = None
+ signature = None
192
+ for header_key, header_value in six.iteritems(headers):
193
+ if header_key.lower() == self._signature_cert_chain_url_key.lower():
194
+ cert_url = header_value
195
+ elif header_key.lower() == self._signature_key.lower():
196
+ signature = header_value
197
198
if cert_url is None or signature is None:
199
raise VerificationException(
0 commit comments