It seems flask is providing a class which is kind of
hybrid between list & dict and provide this error
because of this. Providing a dict instead of the
werkzeug.datastructures.EnvironHeaders.
Closes-Bug: #1839393
Change-Id: Ic8e8e8153f4c812145ff3976c934c84f401f1019