assert 'gzip' == inside.headers['content-encoding']
# They should effectively be the same response.
- inside_headers = (h for h in inside.headers.items() if h[0] != 'Date')
- outside_headers = (h for h in outside.getheaders() if h[0] != 'Date')
+ inside_headers = (h for h in inside.headers.items() if h[0].lower() != 'date')
+ outside_headers = (h for h in outside.getheaders() if h[0].lower() != 'date')
assert set(inside_headers) == set(outside_headers)
inside = zlib.decompress(inside.read(), 16+zlib.MAX_WBITS)
outside = zlib.decompress(outside.read(), 16+zlib.MAX_WBITS)